718
Example
These statements check whether the text-to-speech volume is at least 55 and set it to 55 if is lower:
if voiceGetVolume() < 55 then
voiceSetVolume(55)
end if
See also
voiceSpeak()
,
voicePause()
,
voiceResume()
,
voiceStop()
,
voiceGetRate()
,
voiceSetRate()
,
voiceGetPitch()
,
voiceSetPitch()
,
voiceSetVolume()
,
voiceState()
,
voiceWordPos()
voiceInitialize()
Syntax
voiceInitialize()
Description
Command; loads the computer’s text-to-speech engine. If the
voiceInitialize()
command
returns 0, text-to-speech software is not present or failed to load.
The command returns 1 if successful, 0 otherwise.
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
voiceSpeak()
command to speak the
phrase “Welcome to Shockwave.”:
err = voiceInitialize()
if err = 1 then
voiceSpeak("Welcome to Shockwave")
else
alert "Text-tospeech software failed to load."
end if
See also
voiceCount()
,
voiceSet()
,
voiceGet()
voicePause()
Syntax
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.
Example
These statements cause the text-to-speech engine to pause when the user clicks the mouse:
on mouseUp
voicePause()
end mouseUp
See also
voiceSpeak()
,
voiceResume()
,
voiceStop()
,
voiceGetRate()
,
voiceSetRate()
,
voiceGetPitch()
,
voiceSetPitch()
,
voiceGetVolume()
,
voiceSetVolume()
,
voiceState()
,
voiceWordPos()
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...