Making Director Movies Accessible
559
Using accessibility Lingo
If you have a basic understanding of Lingo, you can write custom scripts to add text-to-speech
functionality to your movies. For more information about Lingo, see Chapter 16, “Writing
Scripts with Lingo,” on page 385.
First, you must initialize the speech software.
To initialize the text-to-speech software:
•
Use the
voiceInitialize()
command.
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
go to frame "Start"
else
alert "Text-to-speech is not available"
end if
end
To determine the number of available voices:
•
Use the
voiceCount()
function.
To return a property list that describes the name, gender, age and index number of the
current voice:
•
Use the
voiceGet()
function.
To return a list of property lists that describes all the available voices:
•
Use the
voiceGetAll()
function.
To set a particular voice as the current voice:
•
Use the
voiceSet()
command.
After you select a voice for speech synthesis, you can control the progress of the speech.
To begin speech synthesis:
•
Use the
voiceSpeak()
command.
To temporarily pause the speech:
•
Use the
voicePause()
command.
Some speech engines might continue to speak for several seconds after the pause command
is used.
To resume the speech:
•
Use the
voiceResume()
command.
To stop speech synthesis:
•
Use the
voiceStop()
command.
Summary of Contents for DIRECTOR MX-USING DIRECTOR MX
Page 1: ...Using Director MX Macromedia Director MX...
Page 12: ...Contents 12...
Page 156: ...Chapter 4 156...
Page 202: ...Chapter 6 202...
Page 244: ...Chapter 7 244...
Page 292: ...Chapter 10 292...
Page 330: ...Chapter 12 330...
Page 356: ...Chapter 13 356...
Page 372: ...Chapter 14 372...
Page 442: ...Chapter 16 442...
Page 472: ...Chapter 18 472...
Page 520: ...Chapter 19 520...
Page 536: ...Chapter 20 536...
Page 562: ...Chapter 23 562...
Page 566: ...Chapter 24 566...
Page 602: ...Chapter 27 602...