User Guide

Deploying accessible movies 435
To resume the speech:
Use the voiceResume() method.
To stop speech synthesis:
Use the voiceStop() method.
To check whether the speech is currently speaking, paused, or stopped:
Use the voiceState() method.
To set the volume of the voice:
Use the voiceSetVolume() method.
To set the pitch of the voice:
Use the voiceSetPitch() method.
To determine the chronological number of the current word within the string being spoken:
Use the voiceWordPos() method.
The following frame script tests whether the current voice is female and starts speech if it is. In
this case, the
voiceSpeak() method specifies the text of the cast member named
“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
extensions 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
movies Xtra extensions list. Normally, Xtra extensions that are not included in a movies 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 movies Xtra
extensions list manually.