Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SFSpeechRecognizer is not available

I've downloaded the sample code SpeakToMe at: https://developer.apple.com/library/prerelease/content/samplecode/SpeakToMe/Introduction/Intro.html
Run it on the device and start recording but receiving no response. After a little debug I see the speechRecognizer.isAvailable is false. But sometimes it still available and work normally. I've checked internet connection as recommendation at https://developer.apple.com/reference/speech/sfspeechrecognizer/1649885-isavailable
What can I do in this situation?

Thank you

like image 388
Tien Nguyen Avatar asked Sep 28 '16 08:09

Tien Nguyen


2 Answers

Either Siri or Dictation needs to be enabled in Settings:

  • iOS 10: Settings -> Siri -> Turn ON
  • iOS 11: Settings -> Press Home/Side Button for Siri -> Turn ON

or

  • Settings -> General -> Keyboard -> Enable Dictation -> Turn ON
like image 119
Eddie Lau Avatar answered Nov 08 '22 11:11

Eddie Lau


Eddie's answer is a bit off now in iOS 11, with Siri settings being changed.

From Settings, select Siri & Search:

enter image description here

Then choose one or both of these options:

enter image description here

like image 34
CodeBender Avatar answered Nov 08 '22 10:11

CodeBender