|class||SpeechRecognition||MBS MacFrameworks Plugin||19.4||✅ Yes||❌ No||❌ No||✅ Yes||All|
Use SFTranscriptionMBS to obtain all the recognized utterances from your audio content. An utterance is a vocalized word or group of words that represent a single meaning to the speech recognizer (SFSpeechRecognizerMBS).
Use the formattedString property to retrieve the entire transcription of utterances, or use the segments property to retrieve an individual utterance (SFTranscriptionSegmentMBS).
You don’t create an SFTranscriptionMBS directly. Instead, you retrieve it from an SFSpeechRecognitionResultMBS instance. The speech recognizer sends a speech recognition result to your app in one of two ways, depending on how your app started a speech recognition task.
You can start a speech recognition task by using the speech recognizer’s recognitionTaskWithRequest method. When the task is complete, the speech recognizer sends an SFSpeechRecognitionResult instance to your resultHandler closure. Alternatively, you can use the speech recognizer’s recognitionTaskWithRequest method to start a speech recognition task. When the task is complete, the speech recognizer uses events to send a SFSpeechRecognitionResultMBS by using the TaskDidFinishRecognition event.
An SFTranscriptionMBS represents only a potential version of the speech. It might not be an accurate representation of the utterances.
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.
- 4 properties
- 3 methods
This class has no sub classes.
Some methods using this class:
- SFSpeechRecognitionResultMBS.transcriptions as SFTranscriptionMBS()
Some properties using for this class:
- SFSpeechRecognitionResultMBS.bestTranscription as SFTranscriptionMBS
Some events using this class:
- SFSpeechRecognizerMBS.TaskDidHypothesizeTranscription(task as SFSpeechRecognitionTaskMBS, transcription as SFTranscriptionMBS)
Some examples using this class:
The items on this page are in the following plugins: MBS MacFrameworks Plugin.