To resume the speech:
•
Use the
voiceResume()
To stop speech synthesis:
•
Use the
voiceStop()
To check whether the speech is currently speaking, paused, or stopped:
•
Use the
voiceState()
To set the volume of the voice:
•
Use the
voiceSetVolume()
To set the pitch of the voice:
•
Use the
voiceSetPitch()
To determine the chronological number of the current word within the string being spoken:
•
Use the
voiceWordPos()
The following frame script tests whether the current voice is female and starts speech if it is. In
this case, the
voiceSpeak()
"TextCommentary".
on exitFrame
voiceProps = voiceGet()
if voiceProps.gender = "female" then
voiceSpeak(member("TextCommentary").text)
end if
end
For a complete list of script terms that control text-to-speech and keyboard navigation, see the
Scripting Reference topics in the Director Help Panel.
Deploying accessible movies
To successfully deploy an accessible movie, you must become familiar with the Speech Xtra
extension's system requirements and download procedure as well as the experience users have with
your accessible movie in real-world situations.
Adding the Speech Xtra
If you use the text-to-speech feature in a projector, you need to include the Speech Xtra in your
movie's Xtra extensions list. Normally, Xtra extensions that are not included in a movie's default
Xtra extensions list are added to the list when a cast member that requires one is added to the cast.
You can view the default Xtra extensions list by opening a new movie and selecting Modify >
Movie > Xtras.
The Speech Xtra is a script-only Xtra, which means that it adds methods and properties to Lingo
or JavaScript syntax, but does not add support for any new cast member types. Because the
Speech Xtra is not associated with any kind of cast member, you must add it to the movie's Xtra
extensions list manually.
method.
method.
method.
method.
method.
method.
method specifies the text of the cast member named
Deploying accessible movies
435
Need help?
Do you have a question about the DIRECTOR MX 2004-USING DIRECTOR and is the answer not in the manual?
Questions and answers