Chapter 23
552
Using the Speech Xtra
The Speech Xtra adds special commands to Lingo that enable the Director text-to-speech
capability. The text-to-speech behaviors require this Xtra because they use these Lingo
commands. If you write custom text-to-speech Lingo scripts, you need to include the Speech Xtra
in your movie’s Xtra list. Keyboard navigation does not require the Speech Xtra.
The Speech Xtra supports Microsoft SAPI 4 and 5.1 on Windows. The 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 list when a certain type of cast member is added to the movie.
Therefore, when you use text-to-speech Lingo or behaviors in a projector, you must remember to
add the Speech Xtra to the Xtra list manually. The Speech xtra is available automatically in the
Director application and in Shockwave.
To add the Speech Xtra to a movie’s Xtra list:
1
Select Modify > Movie > Xtras.
2
Click Add.
3
Select the Speech Xtra
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 Lingo 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.
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-USING DIRECTOR MX
Страница 1: ...Using Director MX Macromedia Director MX...
Страница 12: ...Contents 12...
Страница 156: ...Chapter 4 156...
Страница 202: ...Chapter 6 202...
Страница 244: ...Chapter 7 244...
Страница 292: ...Chapter 10 292...
Страница 330: ...Chapter 12 330...
Страница 356: ...Chapter 13 356...
Страница 372: ...Chapter 14 372...
Страница 442: ...Chapter 16 442...
Страница 472: ...Chapter 18 472...
Страница 520: ...Chapter 19 520...
Страница 536: ...Chapter 20 536...
Страница 562: ...Chapter 23 562...
Страница 566: ...Chapter 24 566...
Страница 602: ...Chapter 27 602...