Skip to content

Instantly share code, notes, and snippets.

@NilStack
Created September 19, 2016 08:45
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/07c8459b9a5bb7f4d83f5e8ed3e92257 to your computer and use it in GitHub Desktop.
Save NilStack/07c8459b9a5bb7f4d83f5e8ed3e92257 to your computer and use it in GitHub Desktop.
SFSpeechRecognizer requestAuthorization
SFSpeechRecognizer.requestAuthorization { authStatus in
switch authStatus {
case .authorized:
print("authorized")
case .denied:
print("denied")
case .restricted:
print("restricted")
case .notDetermined:
print("notDetermined")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment