Platforms to show: All Mac Windows Linux Cross-Platform

NSVoiceMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Speech MBS MacCocoa Plugin 6.4 ✅ Yes ❌ No ❌ No ❌ No Desktop, Console & Web
A voice on Mac OS X with its attributes.
Example
// list the installed English voices for speech synthesis
Var lines() As String
For Each identifier As String In NSSpeechSynthesizerMBS.availableVoices
Var voice As NSVoiceMBS = NSSpeechSynthesizerMBS.attributesForVoice(identifier)
If voice.LocaleIdentifier.BeginsWith("en") Then
lines.Add voice.Name + " (" + voice.LocaleIdentifier + ", " + voice.Gender + "): " + voice.Demotext
End If
Next
MessageBox String.FromArray(lines, EndOfLine)

Available in Mac OS X v10.3 and later.
This is an abstract class. You can't create an instance, but you can get one from various plugin functions.

This class has no subclasses.

Blog Entries

Some methods using this class:

Some examples using this class:

Some related classes:


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


NSVisualEffectViewMBS   -   NSWindowControllerMBS


The biggest plugin in space...