Created
September 22, 2016 06:31
-
-
Save NilStack/36ba6e12e11ccf0d12cf052c698abb50 to your computer and use it in GitHub Desktop.
Speech Recognition with recorded audio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let recognizer = SFSpeechRecognizer() | |
let request = SFSpeechURLRecognitionRequest(url: audioFileURL) | |
recognizer?.recognitionTask(with: request, resultHandler: { (result, error) in | |
print (result?.bestTranscription.formattedString) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment