Platforms to show: All Mac Windows Linux Cross-Platform
AVSpeechSynthesisVoiceMBS class New in 24.1
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Speech | MBS AVFoundation Plugin | 24.1 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The primary factors that distinguish a voice in speech synthesis are language, locale, and quality. Create an instance of AVSpeechSynthesisVoice to select a voice that’s appropriate for the text and the language, and set it as the value of the voice property on an AVSpeechUtterance instance. The voice may optionally reflect a local variant of the language, such as Australian or South African English.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.
- 8 properties
- property audioFileSettings as Dictionary
- property gender as Integer
- property Handle as Integer
- property identifier as String
- property language as String
- property name as String
- property quality as Integer
- property voiceTraits as Integer
- shared property currentLanguageCode as String
- method Constructor Private
- 7 shared methods
- shared method SpeechUtteranceDefaultSpeechRate as Single
- shared method SpeechUtteranceMaximumSpeechRate as Single
- shared method SpeechUtteranceMinimumSpeechRate as Single
- shared method speechVoices as AVSpeechSynthesisVoiceMBS()
- shared method VoiceIdentifierAlex as String
- shared method voiceWithIdentifier(identifier as string) as AVSpeechSynthesisVoiceMBS
- shared method voiceWithLanguage(languageCode as string) as AVSpeechSynthesisVoiceMBS
- 9 constants
Gender
Constant | Value | Description |
---|---|---|
SpeechSynthesisVoiceGenderFemale | 2 |
The female voice option. |
SpeechSynthesisVoiceGenderMale | 1 |
The male voice option. |
SpeechSynthesisVoiceGenderUnspecified | 0 |
The nonspecific gender option. |
Quality
Constant | Value | Description |
---|---|---|
SpeechSynthesisVoiceQualityDefault | 1 |
A basic quality voice that’s available on the device by default. |
SpeechSynthesisVoiceQualityEnhanced | 2 |
An enhanced quality voice that you must download to use. |
SpeechSynthesisVoiceQualityPremium | 3 |
A premium quality voice that you must download to use. |
Voice Traits
Constant | Value | Description |
---|---|---|
SpeechSynthesisVoiceTraitIsNoveltyVoice | 1 |
The trait that indicates a voice is a novelty voice. An example of a novelty voice is a character’s voice in a game. |
SpeechSynthesisVoiceTraitIsPersonalVoice | 2 |
The trait that indicates a voice is a personal voice. A user generates and owns a personal voice. |
SpeechSynthesisVoiceTraitNone | 0 |
The trait that indicates a voice is a regular voice. |
This class has no sub classes.
Some properties using for this class:
- AVSpeechUtteranceMBS.voice as AVSpeechSynthesisVoiceMBS
Blog Entries
The items on this page are in the following plugins: MBS AVFoundation Plugin.
AVSpeechSynthesisMarkerMBS - AVSpeechSynthesizerMBS