Skip to content

Instantly share code, notes, and snippets.

@NilStack
Created September 22, 2016 06:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NilStack/36ba6e12e11ccf0d12cf052c698abb50 to your computer and use it in GitHub Desktop.
Save NilStack/36ba6e12e11ccf0d12cf052c698abb50 to your computer and use it in GitHub Desktop.
Speech Recognition with recorded audio
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