
428
Chapter 20: Making Director Movies Accessible
Using the Speech Xtra
The Speech Xtra adds special methods to scripting that enable the Director text-to-speech
capability. The text-to-speech behaviors require this Xtra extension because they use these script
methods. If you write custom text-to-speech scripts, you must include the Speech Xtra in your
movie’s Xtra extensions list. Keyboard navigation does not require the Speech Xtra.
The Speech Xtra supports Microsoft SAPI 4 and 5 on Windows. The Speech Xtra supports all
versions of text-to-speech on the Macintosh.
Because the Speech Xtra has no specific cast member type associated with it, it is not added
automatically to a movie’s Xtra extensions list when a certain type of cast member is added to the
movie. Therefore, when you use text-to-speech script or behaviors in a projector, you must
remember to add the Speech Xtra to the Xtra extensions list manually. The Speech Xtra is
available automatically in the Director application and in Macromedia Shockwave.
To add the Speech Xtra to a movie’s Xtra extensions list:
1
Select Modify > Movie > Xtras.
2
Click Add.
3
In the alphabetical list of Xtra extensions, scroll to Speech, and select the Speech Xtra. (In
Windows, the file name is Speech.x32.)
4
Click OK to close the Add Xtras dialog box.
5
Click OK to close the Movie Xtras dialog box.
6
Save your movie.
Testing the Speech Xtra
To verify that your computer is configured correctly to let the Speech Xtra work, you can perform
a simple test.
•
To test the Speech Xtra, type the following script into the Message window:
put voiceInitialize()
If the result is 1, then the Speech Xtra is working. If the result is 0, then you might not have
text-to-speech software installed on your computer. For more information about text-to-speech
software, see
“System requirements” on page 436
.
Using the Accessibility behavior library
You can make movies accessible in three ways. You can add keyboard navigation, text-to-speech,
and captioning. The Director Library palette includes an Accessibility section that contains
behaviors for enabling each capability.
For keyboard navigation, you use the Accessibility Target, Accessibility Item or Accessibility Text
Edit Item, Accessibility Keyboard Controller, and Accessibility Group Order behaviors.
For text-to-speech, you use the keyboard navigation behaviors and then add either the
Accessibility Speak or Accessibility Speak Member Text behavior. You can also use the
Accessibility Speak Enable/Disable behavior to let users turn the text-to-speech feature on and off.
For captioning, you use the Keyboard navigation behaviors and Accessibility Speak behaviors and
then add the Accessibility Captioning and Accessibility Synch Caption behaviors.
Содержание DIRECTOR MX 2004-USING DIRECTOR
Страница 1: ...DIRECTOR MX 2004 Using Director...
Страница 16: ...16 Chapter 1 Introduction...
Страница 82: ...82 Chapter 3 Sprites...
Страница 98: ...98 Chapter 4 Animation...
Страница 134: ...134 Chapter 5 Bitmaps...
Страница 242: ...242 Chapter 10 Sound and Synchronization...
Страница 274: ...274 Chapter 11 Using Digital Video...
Страница 290: ...290 Chapter 12 Behaviors...
Страница 302: ...302 Chapter 13 Navigation and User Interaction...
Страница 334: ...334 Chapter 15 The 3D Cast Member 3D Text and 3D Behaviors...
Страница 392: ...392 Chapter 16 Working with Models and Model Resources...
Страница 418: ...418 Chapter 18 Movies in a Window...
Страница 446: ...446 Chapter 22 Managing and Testing Director Projects...