Example
These statements load the computer's text-to-speech engine and then test for whether the text-to-
speech engine has completed loading before using the
phrase "Welcome to Shockwave.":
-- Lingo syntax
err = voiceInitialize()
if err = 1 then
voiceSpeak("Welcome to Shockwave")
else
alert "Text-to-speech software failed to load."
end if
// JavaScript syntax
err = voiceInitialize();
if (err == 1) {
voiceSpeak("Welcome to Shockwave");
} else {
alert("Text-to-speech software failed to load.");
}
See also
voiceCount(), voiceSet(),
voicePause()
Usage
voicePause()
Description
Command; pauses the speech output to the text-to-speech engine. The command returns a value
of 1 if it is successful, or 0 if it is not.
Parameters
None.
Example
These statements cause the text-to-speech engine to pause when the user clicks the mouse:
-- Lingo syntax
on mouseUp
voicePause()
end mouseUp
// JavaScript syntax
function mouseUp() {
voicePause();
}
See also
voiceSpeak(), voiceResume(), voiceStop(), voiceGetRate(), voiceSetRate(),
voiceGetPitch(), voiceSetPitch(), voiceGetVolume(), voiceSetVolume(),
voiceState(),
voiceGet()
voiceWordPos()
command to speak the
voiceSpeak()
voicePause()
583
Need help?
Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?
Questions and answers