|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.speech.synthesis.Voice
org.alchar.jdtk.Voice
public class Voice
This class encapsulates a DECtalk software speech synthesizer voice. It also provides constants for the system defined voices (by name).
| Field Summary | |
|---|---|
static Voice |
BETTY
The default female voice. |
static Voice |
DENNIS
A younger male voice. |
static Voice |
FRANK
An older male voice. |
static Voice |
HARRY
A deep male voice. |
static Voice |
KIT
A child voice. |
static Voice |
PAUL
The default male voice. |
static Voice |
RITA
A deep female voice. |
static Voice |
URSULA
An older female voice. |
static Voice[] |
voices
A static array holding the list of defined voices. |
static Voice |
WENDY
A whispery female voice. |
| Fields inherited from class javax.speech.synthesis.Voice |
|---|
AGE_CHILD, AGE_DONT_CARE, AGE_MIDDLE_ADULT, AGE_NEUTRAL, AGE_OLDER_ADULT, AGE_TEENAGER, AGE_YOUNGER_ADULT, GENDER_DONT_CARE, GENDER_FEMALE, GENDER_MALE, GENDER_NEUTRAL |
| Constructor Summary | |
|---|---|
Voice(String name,
int gender,
int age,
String style,
int averagePitch,
int pitchRange)
Create a new DECtalk voice with the given parameters. |
|
| Method Summary | |
|---|---|
int |
getAveragePitch()
Return the average pitch. |
int |
getPitchRange()
Return the pitch range percentage. |
static Voice[] |
getVoices()
Return a array of all available voices. |
String |
toString()
Return a string representation of this object. |
| Methods inherited from class javax.speech.synthesis.Voice |
|---|
clone, equals, getAge, getGender, getName, getStyle, match, setAge, setGender, setName, setStyle |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Voice PAUL
public static final Voice BETTY
public static final Voice HARRY
public static final Voice FRANK
public static final Voice DENNIS
public static final Voice KIT
public static final Voice URSULA
public static final Voice RITA
public static final Voice WENDY
public static final Voice[] voices
| Constructor Detail |
|---|
public Voice(String name,
int gender,
int age,
String style,
int averagePitch,
int pitchRange)
name - Namegender - Genderage - Agestyle - StyleaveragePitch - Average pitchpitchRange - Pitch range| Method Detail |
|---|
public int getAveragePitch()
public int getPitchRange()
public String toString()
toString in class Objectpublic static Voice[] getVoices()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2007-2009 Kris Van Hees. All Rights Reserved.