580
Chapter 12: Methods
Example
This statement sets the variable
oldVoice
to the property list describing the current text-to-
speech voice:
oldVoice = voiceGet()
This statement displays the property list of the current text-to-speech voice:
put voiceGet()
-- [#name: "Mary", #age: "teen", #gender: "female", #index: 5]
See also
voiceInitialize()
,
voiceCount()
,
voiceSet()
,
voiceGet()
voiceGetAll()
Usage
voiceGetAll()
Description
Function; returns a list of the available voices installed on the computer. The list is composed of
property lists, one for each available voice.
Each property list contains the following properties:
•
#name
indicates the name of the installed voice.
•
#age
indicates the age of the voice. The value is a string. Possible values include “Teen”,
“Adult”, “Toddler”, and “Senior”, as well as numeric values such as “35”. Actual values depend
on the operating system, speech software version, and voices installed.
•
#gender
indicates wether the voice is male or female.
•
#index
indicates the position of the voice in the list of installed voices. You can refer to a voice
by its index when using the
voiceSet()
command.
You can also use
voiceCount()
to determine the number of available voices.
Parameters
None.
Example
This statement sets the variable
currentVoices
to the list of voices installed on the user’s
computer:
currentVoices = voiceGetAll()
This statement displays the property list describing each of the currently installed
text-to-speech voices:
put voiceGetAll()
-- [[#name: "Mary", #age: "teen", #gender: "female", #index: 1], [#name: "Joe",
#age: "adult", #gender: "male", #index: 2]]
See also
voiceInitialize()
,
voiceCount()
,
voiceSet()
,
voiceGet()
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...