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)
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)
you can use
OpenEars SDK http://www.politepix.com/openears/
or
AT&T Watson http://developer.att.com/apis/speech
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):
SpeechKit
in Objective-C then interface with that using a bridging header. I don't know of any other good tutorials that I'd recommend but I'll keep looking –
Sauer © 2022 - 2024 — McMap. All rights reserved.