Platforms to show: All Mac Windows Linux Cross-Platform
Back to AVSpeechSynthesizerMBS class.
AVSpeechSynthesizerMBS.Constructor
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Speech | MBS AVFoundation Plugin | 24.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
AVSpeechSynthesizerMBS.continueSpeaking as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Speech | MBS AVFoundation Plugin | 24.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Returns true if speech resumes; otherwise, false.
This method only has an effect if the speech synthesizer is in a paused state.
AVSpeechSynthesizerMBS.Destructor
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Speech | MBS AVFoundation Plugin | 24.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
AVSpeechSynthesizerMBS.pauseSpeakingAtBoundary(SpeechBoundary as Integer) as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Speech | MBS AVFoundation Plugin | 24.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
boundary: An enumeration that describes whether to pause speech immediately or only after the synthesizer finishes speaking the current word.
Returns true if speech pauses; otherwise, false.
The boundary parameter also affects how the speech synthesizer resumes speaking text after a pause and call to continueSpeaking. If the boundary is SpeechBoundaryImmediate, speech resumes from the exact point where it pauses, even if that point occurs in the middle of speaking a word. If the boundary is SpeechBoundaryWord, speech resumes from the word that follows the last spoken word where it pauses.
AVSpeechSynthesizerMBS.requestPersonalVoiceAuthorization
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Speech | MBS AVFoundation Plugin | 24.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
AVSpeechSynthesizerMBS.speakUtterance(utterance as AVSpeechUtteranceMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Speech | MBS AVFoundation Plugin | 24.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
utterance: An AVSpeechUtteranceMBS instance that contains text to speak.
Discussion
Warning: Attempting to enqueue the same utterance more than once throws an exception.
Some examples using this method:
AVSpeechSynthesizerMBS.stopSpeakingAtBoundary(SpeechBoundary as Integer) as Boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Speech | MBS AVFoundation Plugin | 24.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
boundary: An enumeration that describes whether to stop speech immediately or only after the synthesizer finishes speaking the current word.
Returns true if speech stops; otherwise, false.
Unlike pausing a speech synthesizer, which can resume after a pause, stopping the synthesizer immediately cancels speech and removes all unspoken utterances from the synthesizer’s queue.
AVSpeechSynthesizerMBS.writeUtterance(utterance as AVSpeechUtteranceMBS)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Speech | MBS AVFoundation Plugin | 24.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
utterance: The utterance for synthesizing speech.
Call this method to receive audio buffers to store or further process synthesized speech.
Calls SpeechSynthesizerBuffer and SpeechSynthesizerMarker events later.
The items on this page are in the following plugins: MBS AVFoundation Plugin.
