Skip to content

Instantly share code, notes, and snippets.

@NilStack
Created September 19, 2016 08:45
Show Gist options
  • Select an option

  • Save NilStack/07c8459b9a5bb7f4d83f5e8ed3e92257 to your computer and use it in GitHub Desktop.

Select an option

Save NilStack/07c8459b9a5bb7f4d83f5e8ed3e92257 to your computer and use it in GitHub Desktop.

Revisions

  1. NilStack created this gist Sep 19, 2016.
    15 changes: 15 additions & 0 deletions SFSpeechRecognizerrequestAuthorization
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    SFSpeechRecognizer.requestAuthorization { authStatus in
    switch authStatus {
    case .authorized:
    print("authorized")

    case .denied:
    print("denied")

    case .restricted:
    print("restricted")

    case .notDetermined:
    print("notDetermined")
    }
    }