-3

I want to know to code on how to speak a specific wording using voice recogniser, then it will automatically switch to the other view controllers when it recognises the keywords.

1 Answers1

0

You need to divide this task. First of all you should recognize user speech and handle some keywords. Please refer to this article or just google something like "speech recognition with ios".

Then just navigate to a new ViewController. This action depends only on your needs and can be achieved by many ways. For example like this.

atereshkov
  • 4,311
  • 1
  • 38
  • 49
  • Thanks. So how can I navigate to another viewcontroller by voice control? Would it be fine if I set the code if the voice recognizer recognizes a keyword, then it will direct to a certain viewcontroller? And how about the codes for this situation? Many thanks. – Tsing Yin Lee Oct 23 '17 at 15:28
  • Could you please again carefully look at my answer above. I provided a link to the article, as well as possible ways for finding some code for your task. – atereshkov Oct 23 '17 at 17:55
  • I understand what you mean, but the problem I have encountered is when I have the voice recognizer and different view controllers ready, what would be the code for according to some keywords, directing to other specified view controllers as I could not find the code from the links you provided. – Tsing Yin Lee Oct 24 '17 at 07:05