Using Accessibility Lingo - MACROMEDIA DIRECTOR MX-USING DIRECTOR MX Use Manual

Table of Contents

Advertisement

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()
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()
To return a property list that describes the name, gender, age and index number of the
current voice:
Use the
voiceGet()
To return a list of property lists that describes all the available voices:
Use the
voiceGetAll()
To set a particular voice as the current voice:
Use the
voiceSet()
After you select a voice for speech synthesis, you can control the progress of the speech.
To begin speech synthesis:
Use the
voiceSpeak()
To temporarily pause the speech:
Use the
voicePause()
Some speech engines might continue to speak for several seconds after the pause command
is used.
To resume the speech:
Use the
voiceResume()
To stop speech synthesis:
Use the
voiceStop()
command.
function.
function.
function.
command.
command.
command.
command.
command.
Making Director Movies Accessible 559

Advertisement

Table of Contents
loading

This manual is also suitable for:

Director mx

Table of Contents