SFSpeechRecognizerMBS class

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

SFSpeechRecognizerMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class SpeechRecognition MBS MacFrameworks Plugin 19.4 ✅ Yes ❌ No ❌ No ✅ Yes All
An object you use to check for the availability of the speech recognition service, and to initiate the speech recognition process.

An SFSpeechRecognizerMBS object is the central object for managing the speech recognizer process. Use this object to:


Set Up Speech Recognition
Each speech recognizer supports only one language, which you specify at creation time. The successful creation of a speech recognizer does not guarantee that speech recognition services are available. For some languages, the recognizer might require an Internet connection. Use the available property to find out if speech recognition services are available for the current language.

To initiate the speech recognition process, do the following:

The type of recognition request object you create depends on whether you are processing an existing audio file or an incoming stream of audio. For existing audio files, create a SFSpeechURLRecognitionRequestMBS object. For audio streams, create a SFSpeechAudioBufferRecognitionRequestMBS object.

Create a Great User Experience for Speech Recognition
Here are some tips to consider when adding speech recognition support to your app.

Requires MacOS 10.15 or later.

AuthorizationStatus

Constant Value Description
kAuthorizationStatusAuthorized 3 The user granted your app's request to perform speech recognition.
kAuthorizationStatusDenied 1 The user denied your app's request to perform speech recognition.
kAuthorizationStatusNotDetermined 0 The app's authorization status has not yet been determined.
kAuthorizationStatusRestricted 2 The device prevents your app from performing speech recognition.

This class has no sub classes.

Some examples using this class:

Blog Entries


The items on this page are in the following plugins: MBS Mac64bit Plugin, MBS MacFrameworks Plugin.


SFSpeechRecognitionTaskMBS   -   SFSpeechURLRecognitionRequestMBS


💬 Ask a question or report a problem