In my app when the user says a certain word or words the app will answer by reading out a sentence which is set in app. What is the simplest way of doing this?
I'm using the latest version of Xcode (Its for my WWDC 2015 scholarship app)
As of iOS 10 you can use Speech.framework:
import Speech
let recognizer = SFSpeechRecognizer()
let request = SFSpeechURLRecognitionRequest(url: audioFileURL)
recognizer?.recognitionTask(with: request, resultHandler: { (result, error) in
print (result?.bestTranscription.formattedString)
})
you can use
OpenEars SDK http://www.politepix.com/openears/
or
AT&T Watson http://developer.att.com/apis/speech
You'll want to use SpeechKit
. Ray has a nice tutorial here:
http://www.raywenderlich.com/60870/building-ios-app-like-siri
The SDK is developed by Nuance (the dragon people):
http://nuancemobiledeveloper.com/public/index.php
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With