SpeechRecognition.RequestAuthorization
--------------------------------------

Requests authorization for Speech Recognition.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Speech](component_Speech.md) | [9.4](newinversion94.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "SpeechRecognition.RequestAuthorization" ) ### Parameters

none

### Result

Returns OK or error.

### Description

Requests authorization for Speech Recognition.  
Asks the user to allow your app to perform speech recognition.  
Call this method before performing any other tasks associated with speech recognition. This method executes asynchronously, returning shortly after you call it.   
This may show a dialog and user may confirm later.  
  
When your app's authorization status is NotDetermined, this method causes the system to prompt the user to grant or deny permission for your app to use speech recognition. The prompt includes the custom message you specify in the NSSpeechRecognitionUsageDescription key of your app's Info.plist file. The user's response is saved so that future calls to this method do not prompt the user again.  
### Examples

Request authorization:

 Set Variable \[ $r ; MBS ( "SpeechRecognition.RequestAuthorization" ) \]  
### Example Databases

- [Mac and iOS/Speech Recognition](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20and%20iOS/Speech%20Recognition.shtml#4ScriptAnchor_)

### Blog Entries

- [macOS Privacy and FileMaker](https://www.mbsplugins.de/archive/2020-08-11/macOS_Privacy_and_FileMaker/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 22nd August 2019 , last changed 22nd August 2019

  
[SpeechRecognition.Recognize](SpeechRecognitionRecognize.md) - [SpeechRecognition.SupportedLocales](SpeechRecognitionSupportedLocales.md)

[HTML Version](SpeechRecognitionRequestAuthorization.shtml)