Platforms to show: All Mac Windows Linux Cross-Platform

SFSpeechRecognitionResultMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class SpeechRecognition MBS MacFrameworks Plugin 19.4 ✅ Yes ❌ No ❌ No ✅ Yes All
An object containing the partial or final results of a speech recognition request.

Use an SFSpeechRecognitionResultMBS object to retrieve the results of a speech recognition request. You do not create these objects directly. Instead, the Speech framework creates them and passes them to the handler block or delegate object you specified when starting your speech recognition task.
A speech recognition result object contains one or more transcriptions of the current utterance. Each transcription has a confidence rating indicating how likely it is to be correct. (You can also get the transcription with the highest rating directly from the bestTranscription property.)
If you requested partial results from the speech recognizer, the transcriptions may represent only part of the total audio content. Use the final property to determine if the request contains partial or final results.

Requires MacOS 10.15 or later.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.

Task Hints

Constant Value Description
kTaskHintConfirmation 3 A task that uses captured speech for short, confirmation-style requests.
Use this hint type when you are using speech recognition to handle confirmation commands, such as "yes," "no," or "maybe."
kTaskHintDictation 1 A task that uses captured speech for text entry.
Use this hint type when you are using speech recognition for a task that's similar to the keyboard's built-in dictation function.
kTaskHintSearch 2 A task that uses captured speech to specify seach terms.
Use this hint type when you are using speech recognition to identify search terms.
kTaskHintUnspecified 0 An unspecified type of task.
Use this hint type when the intended use for captured speech does not match the other task types.

This class has no sub classes.

Some events using this class:

Some examples using this class:

Blog Entries


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


SFSpeechRecognitionRequestMBS   -   SFSpeechRecognitionTaskMBS


The biggest plugin in space...