Platforms to show: All Mac Windows Linux Cross-Platform

Back to SpeechMBS class.

SpeechMBS.close

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Speech MBS MacClassic Plugin 3.4 ✅ Yes ❌ No ❌ No ❌ No Desktop only
The destructor.

There is no need to call this method except you want to free all resources of this object now without waiting for Xojo to do it for you.

SpeechMBS.DefaultVoice as VoiceMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Speech MBS MacClassic Plugin ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the default VoiceMBS.
Example
dim s as new SpeechMBS
dim v as VoiceMBS = s.DefaultVoice

MsgBox v.Name

SpeechMBS.Speak(s as string) as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Speech MBS MacClassic Plugin ✅ Yes ❌ No ❌ No ❌ No Desktop only
Speaks a text using the default settings.
Example
dim s as new SpeechMBS

call s.Speak("Hello")

MsgBox "you hear me?"

Returns directly to caller.
Returns true if speaking is working.

v5.1: Now encoding safe and stores result in lasterror property.

SpeechMBS.SpeechBusy as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Speech MBS MacClassic Plugin ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns how much SpeechChannels are currently in use of you application.
Example
dim s as new SpeechMBS

MsgBox str(s.SpeechBusy)

SpeechMBS.SpeechBusySystemWide as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Speech MBS MacClassic Plugin ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns how much SpeechChannels are currently in use on this Mac.
Example
dim s as new SpeechMBS

MsgBox str(s.SpeechBusySystemWide)

SpeechMBS.Voice(index as Integer) as VoiceMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Speech MBS MacClassic Plugin ✅ Yes ❌ No ❌ No ❌ No Desktop only
Returns the VoiceMBS with this number.
Example
dim s as new SpeechMBS

MsgBox s.Voice(1).Name

Index is from 1 to VoiceCount.

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


The biggest plugin in space...