AVSpeechSynthesisVoiceMBS shared methods

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

Back to AVSpeechSynthesisVoiceMBS class.

AVSpeechSynthesisVoiceMBS.SpeechUtteranceDefaultSpeechRate as Single

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Speech MBS AVFoundation Plugin 24.1 ✅ Yes ❌ No ❌ No ✅ Yes All
The default speech rate.

AVSpeechSynthesisVoiceMBS.SpeechUtteranceMaximumSpeechRate as Single

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Speech MBS AVFoundation Plugin 24.1 ✅ Yes ❌ No ❌ No ✅ Yes All
The maximum speech rate.

AVSpeechSynthesisVoiceMBS.SpeechUtteranceMinimumSpeechRate as Single

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Speech MBS AVFoundation Plugin 24.1 ✅ Yes ❌ No ❌ No ✅ Yes All
The minimum speech rate.

AVSpeechSynthesisVoiceMBS.speechVoices as AVSpeechSynthesisVoiceMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Speech MBS AVFoundation Plugin 24.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Retrieves all available voices on the device.
Example
Dim voices() As AVSpeechSynthesisVoiceMBS = AVSpeechSynthesisVoiceMBS.speechVoices

Dim Names() As String
For Each voice As AVSpeechSynthesisVoiceMBS In voices
names.append voice.name
Next

MessageBox Join(names, ", ")

Use the language property to identify each voice by its language and locale.

AVSpeechSynthesisVoiceMBS.VoiceIdentifierAlex as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Speech MBS AVFoundation Plugin 24.1 ✅ Yes ❌ No ❌ No ✅ Yes All
The voice that the system identifies as Alex.

The Alex voice is only available for the en-US language code.

AVSpeechSynthesisVoiceMBS.voiceWithIdentifier(identifier as string) as AVSpeechSynthesisVoiceMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Speech MBS AVFoundation Plugin 24.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Retrieves a voice for the identifier you specify.
Example
Dim voice As AVSpeechSynthesisVoiceMBS = AVSpeechSynthesisVoiceMBS.voiceWithIdentifier("com.apple.voice.compact.en-GB.Daniel")

MessageBox voice.name

identifier: The unique identifier for a voice.

A voice for the specified identifier if the identifier is valid and the voice is available on the device; otherwise, nil.

AVSpeechSynthesisVoiceMBS.voiceWithLanguage(languageCode as string) as AVSpeechSynthesisVoiceMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Speech MBS AVFoundation Plugin 24.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Retrieves a voice for the BCP 47 code language code you specify.
Example
Dim voice As AVSpeechSynthesisVoiceMBS = AVSpeechSynthesisVoiceMBS.voiceWithLanguage("en-GB")

MessageBox voice.name

language: A BCP 47 code that identifies the language and locale for a voice.

Returns a voice for the specified language and locale code if the code is valid; otherwise, nil.

Pass "" for languageCode to receive the default voice for the system’s language and region.

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


💬 Ask a question or report a problem