
722
Example
These statements stop the speech when the playhead moves to the next frame in the Score:
on exitFrame
voiceStop()
end exitFrame
See also
voiceSpeak()
,
voicePause()
,
voiceResume()
,
voiceGetRate()
,
voiceSetRate()
,
voiceGetPitch()
,
voiceSetPitch()
,
voiceGetVolume()
,
voiceSetVolume()
,
voiceState()
,
voiceWordPos()
,
voiceSpeak()
voiceWordPos()
Syntax
voiceWordPos()
Description
Function; returns an integer indicating the position of the word that is currently being spoken
within the entire string that contains it. For example, if a cast member containing 15 words is
being spoken and the fifth word of the cast member is being spoken when the function is used,
the return value is 5.
Example
The following statements cause the sentence “Hello, how are you?” to be spoken and display the
current word position in the Message window. Since the
voiceWordPos()
function is called
immediately after the
voiceSpeak()
command is used, the return value will be 1.
voiceSpeak(“Hello, how are you?”)
put voiceWordPos()
-- 1
See also
voiceSpeak()
,
voicePause()
,
voiceResume()
,
voiceStop()
,
voiceGetRate()
,
voiceSetRate()
,
voiceGetPitch()
,
voiceSetPitch()
,
voiceGetVolume()
,
voiceSetVolume()
,
voiceState()
,
voiceSpeak()
VOID
Syntax
VOID
Description
Constant; indicates the value
VOID
.
Example
This statement checks whether the value in the variable
currentVariable
is
VOID
:
if currentVariable = VOID then
put "This variable has no value"
end if
See also
voidP()
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...