Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSSpeechSynthesizerMBS class.

NSSpeechSynthesizerMBS.attributesForVoice(voice as String) as NSVoiceMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Speech MBS MacCocoa Plugin 7.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns information about a voice or nil.

Some examples using this method:

NSSpeechSynthesizerMBS.availableVoice(index as Integer) as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Speech MBS MacCocoa Plugin 7.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns name of a voice.

The available voices can be listed using this function.
Index is from 0 to count-1.

Some examples using this method:

NSSpeechSynthesizerMBS.availableVoices as String()

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Speech MBS MacCocoa Plugin 10.5 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Returns the array with the identifiers for the available voices.
Example
MsgBox Join(NSSpeechSynthesizerMBS.availableVoices)

Same as availableVoice() and availableVoicesCount, but this function returns an array which is very useful for for-each-loops.

NSSpeechSynthesizerMBS.availableVoicesCount as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Speech MBS MacCocoa Plugin 7.2 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Number of voices available.

Some examples using this method:

NSSpeechSynthesizerMBS.defaultVoice as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Speech MBS MacCocoa Plugin 6.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Provides the identifier of the default voice.
Example
Var s as NSSpeechSynthesizerMBS

s=new NSSpeechSynthesizerMBS

MsgBox s.defaultVoice

NSSpeechSynthesizerMBS.isAnyApplicationSpeaking as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Speech MBS MacCocoa Plugin 6.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
Indicates whether any other application is currently speaking through the sound output device.

Some examples using this method:

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


The biggest plugin in space...