
ADOBE DIRECTOR 11.0
User Guide
427
These words are replaced in the captioning display sprite by later sections of the text being spoken. You select
the number of words in each section by using the remaining text boxes in the dialog box.
7
In the next At Word text box, enter the number of the word where the second section of captioning should begin.
For example, to make the second section of captioning begin at word 16 of the spoken text, enter
16
in the text box.
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, to display 22 words of text after word 16, enter
22
in
this text box.
9
In the remaining text boxes, enter the number for the first word of each section, followed by the number of words
for the section. To use more than five sections, drop this behavior on the sprite again. Repeat this procedure as often
as necessary.
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.
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
Determine the number of available voices
•
Use the
voiceCount()
method.
Return a property list that describes the name, gender, age, and index number of the current voice
•
Use the
voiceGet()
method.
Return a list of property lists that describes all the available voices
•
Use the
voiceGetAll()
method.
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.
Begin speech synthesis
•
Use the
voiceSpeak()
method.
Содержание 65036570 - Director - PC
Страница 1: ...i ADOBE DIRECTOR 11 USER GUIDE...