Modules | Files | Inheritance Tree | Inheritance Graph | Name Index
module GNOME::Speech::Synthesis
interface Voice
Files: GNOME_Speech.idl
GNOME-Speech-Synthesis-Voice-inheritance GNOME-Speech-SpeechObject.html Bonobo-Unknown.html
Operations Summary:
 voidinitWithVoiceInfo(in string name, in long gender, in long age, in string style)
 SpeechObjectclone()
 booleanequals(in Voice anObject)
 longgetAge()
 longgetGender()
 stringgetName()
 stringgetStyle()
 booleanmatch(in Voice require)
 voidsetAge(in long age)
 voidsetGender(in long gender)
 voidsetName(in string name)
 voidsetStyle(in string style)

Operations Inherited from Bonobo::Unknown
ref, unref, queryInterface

Operation Details:
 void initWithVoiceInfo(in string name, in long gender, in long age, in string style)

Initializer provided with voice name, gender, age and style.

Parameters:
name - the voice name.
gender - the voice gender.
age - the age of the voice.
style - the style of the voice.


 SpeechObject clone()

Create a copy of this Voice.

Return:
a copy of this Voice.


 boolean equals(in Voice anObject)

Returns true if and only if the parameter is not null and is a Voice with equal values of name, age, gender, and style.

Parameters:
anObject - the voice to compare against.
Return:
a boolean indication of whether the voices are equal.


 long getAge()

Get the voice age. Age values are OR'able.

Return:
the voice age.
See Also:
AGE_CHILD
AGE_TEENAGER
AGE_YOUNGER_ADULT
AGE_MIDDLE_ADULT
AGE_OLDER_ADULT
AGE_NEUTRAL
AGE_DONT_CARE


 long getGender()

Get the voice gender. Gender values are OR'able.

Return:
the voice gender.
See Also:
GENDER_FEMALE
GENDER_MALE
GENDER_NEUTRAL
GENDER_DONT_CARE


 string getName()

Get the voice name. May return null.

Return:
the voice name.


 string getStyle()

Get the voice style. This parameter is designed for human interpretation. Values might include "business", "casual", "robotic", "breathy".

Return:
the voice style.


 boolean match(in Voice require)

Determine whether a Voice has all the features defined in the require object. Strings in require which are either null or zero-length ("") are ignored. All string comparisons are exact matches (case-sensitive).

GENDER_DONT_CARE and AGE_DONT_CARE values in the require object are ignored. The age and gender parameters are OR'ed: e.g. the required age can be AGE_TEENAGER | AGE_CHILD.

Parameters:
require - the Voice to match against.
Return:
a boolean indication of whether these two voices match.


 void setAge(in long age)

Set the voice age.

Parameters:
age - the new voice age.
See Also:
AGE_CHILD
AGE_TEENAGER
AGE_YOUNGER_ADULT
AGE_MIDDLE_ADULT
AGE_OLDER_ADULT
AGE_NEUTRAL
AGE_DONT_CARE


 void setGender(in long gender)

Set the voice gender.

Parameters:
gender - the new voice gender.
See Also:
GENDER_FEMALE
GENDER_MALE
GENDER_NEUTRAL
GENDER_DONT_CARE


 void setName(in string name)

Set the voice name. A null or "" string in voice match means don't care.

Parameters:
name - the new voice name.


 void setStyle(in string style)

Set the voice style.

Parameters:
style - the new voice style.