
434
Chapter 20: Making Director Movies Accessible
8
In the Display How Many of the Words That Follow text box, enter the number of words to
display after the word number you selected in the previous step. For example if you want to
display 22 words of text after word 16, enter
22
in this text box.
9
In the remaining text boxes, enter the numbers of the first word of each section of text followed
by the number of words in each section. To use more than five sections, drop this behavior on
the sprite again. This procedure can be repeated as often as necessary.
10
When you have finished entering values in the dialog box, click OK.
Accessibility scripting with Lingo or JavaScript syntax
If you have a basic understanding of Lingo or JavaScript syntax, you can write custom scripts to
add text-to-speech functionality to your movies. For more information about Lingo and
JavaScript syntax, see the Scripting Reference topics in the Director Help Panel.
First, you must initialize the speech software.
To initialize the text-to-speech software:
•
Use the
voiceInitialize()
method.
The following frame script tests whether text-to-speech software is installed. If no software is
installed, the script displays an alert dialog box.
on exitFrame
if voiceInitialize() then
_movie.go("Start")
else
alert "Text-to-speech is not available"
end if
end
To determine the number of available voices:
•
Use the
voiceCount()
method.
To return a property list that describes the name, gender, age and index number of the
current voice:
•
Use the
voiceGet()
method.
To return a list of property lists that describes all the available voices:
•
Use the
voiceGetAll()
method.
To set a particular voice as the current voice:
•
Use the
voiceSet()
method.
After you select a voice for speech synthesis, you can control the progress of the speech.
To begin speech synthesis:
•
Use the
voiceSpeak()
method.
To temporarily pause the speech:
•
Use the
voicePause()
method.
Some speech engines might continue to speak for several seconds after the pause method
is used.
Summary of Contents for DIRECTOR MX 2004-USING DIRECTOR
Page 1: ...DIRECTOR MX 2004 Using Director...
Page 16: ...16 Chapter 1 Introduction...
Page 82: ...82 Chapter 3 Sprites...
Page 98: ...98 Chapter 4 Animation...
Page 134: ...134 Chapter 5 Bitmaps...
Page 242: ...242 Chapter 10 Sound and Synchronization...
Page 274: ...274 Chapter 11 Using Digital Video...
Page 290: ...290 Chapter 12 Behaviors...
Page 302: ...302 Chapter 13 Navigation and User Interaction...
Page 334: ...334 Chapter 15 The 3D Cast Member 3D Text and 3D Behaviors...
Page 392: ...392 Chapter 16 Working with Models and Model Resources...
Page 418: ...418 Chapter 18 Movies in a Window...
Page 446: ...446 Chapter 22 Managing and Testing Director Projects...