Easy Swift Voice Recognition?

In my application, when a user pronounces a specific word or words, the application will respond by reading the sentence that is installed in the application. What is the easiest way to do this?

I am using the latest version of Xcode (For my WWDC 2015 scholarship application)

+6
source share
3 answers
+5
source

Starting with 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) }) 
+9
source

You want to use SpeechKit . There is a good tutorial here:

http://www.raywenderlich.com/60870/building-ios-app-like-siri

SDK is developed by Nuance (dragon people):

http://nuancemobiledeveloper.com/public/index.php

+2
source

Source: https://habr.com/ru/post/984967/


All Articles