0

I have question regarding iOS speech recognition API. Is there a way to start listening, like hey Siri/ok, google/hey Alexa, with the API?

My app is a handsfree app and I need the text of what the user said after he/she says the certain keyword: like "Hey Assistant".

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Gohan Xu
  • 13
  • 1
  • 3

1 Answers1

0

You could listen continuously and then just check for the phrase you're looking for.

This question has some examples of continuous recognition: Continuous speech recogn. with SFSpeechRecognizer (ios10-beta)

  • 1
    doesn't the api limit to 1 minute audio, or is it not there for continuous recognittion – Gohan Xu Jul 03 '17 at 03:36
  • You're right it does look like they're limiting it to a minute. https://developer.apple.com/videos/play/wwdc2016/509/?time=592 – Andrew Meier Jul 03 '17 at 16:17