SFSpeechRecognizer Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Encapsulates the speech recognition facilities.
[Foundation.Register("SFSpeechRecognizer", true)]
public class SFSpeechRecognizer : Foundation.NSObject
[<Foundation.Register("SFSpeechRecognizer", true)>]
type SFSpeechRecognizer = class
inherit NSObject
- Inheritance
- Attributes
Remarks
An SFSpeechRecognizer asynchronously processes SFSpeechRecognitionRequest objects, generating SFSpeechRecognitionResult objects.
Apps that use speech recognition must add the following key, with appropriate descriptions, in their info.plist file:
<key>NSSpeechRecognitionUsageDescription</key>
<string>Speech recognition will be used to determine which words you speak into this device's microphone.</string>
If an application does not have this key, the operating system will execute a "silent" shutdown at runtime, with no exception or ability to log the mistake.
Additionally, if the app uses the AVAudioEngine to access the microphone, the app must also contain a <key>NSMicrophoneUsageDescription</key> key.
Constructors
| Name | Description |
|---|---|
| SFSpeechRecognizer() |
Creates a new SFSpeechRecognizer with default values. |
| SFSpeechRecognizer(NativeHandle) |
A constructor used when creating managed representations of unmanaged objects. Called by the runtime. |
| SFSpeechRecognizer(NSLocale) | |
| SFSpeechRecognizer(NSObjectFlag) |
Constructor to call on derived classes to skip initialization and merely allocate the object. |
Properties
| Name | Description |
|---|---|
| AccessibilityAttributedUserInputLabels | (Inherited from NSObject) |
| AccessibilityRespondsToUserInteraction | (Inherited from NSObject) |
| AccessibilityTextualContext | (Inherited from NSObject) |
| AccessibilityUserInputLabels | (Inherited from NSObject) |
| AuthorizationStatus | |
| Available |
Gets whether speech recognition is currently available. |
| Class | (Inherited from NSObject) |
| ClassHandle |
The Objective-C class handle for this class. |
| DebugDescription | (Inherited from NSObject) |
| DefaultTaskHint | |
| Delegate | |
| Description | (Inherited from NSObject) |
| ExposedBindings | (Inherited from NSObject) |
| Handle |
Handle (pointer) to the unmanaged object representation. (Inherited from NSObject) |
| IsDirectBinding | (Inherited from NSObject) |
| IsProxy | (Inherited from NSObject) |
| Locale | |
| Queue | |
| RetainCount | (Inherited from NSObject) |
| Self | (Inherited from NSObject) |
| Superclass | (Inherited from NSObject) |
| SuperHandle |
Handle used to represent the methods in the base class for this NSObject. (Inherited from NSObject) |
| SupportedLocales | |
| SupportsOnDeviceRecognition | |
| Zone | (Inherited from NSObject) |