org.alchar.jdtk.jsapi
Class DTKVoice

java.lang.Object
  extended by javax.speech.synthesis.Voice
      extended by org.alchar.jdtk.jsapi.DTKVoice

public class DTKVoice
extends Voice

This class implements the JSAPI 1.0 functionality for a DECtalk voice.


Field Summary
 
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
DTKVoice(Voice voice)
          Create a new DTKVoice object based on the given DECtalk Voice object.
 
Method Summary
 float getAveragePitch()
          Return the average pitch for this voice (in Hz).
 float getPitchRange()
          Return the pitch range for this voice (in Hz).
static DTKVoice[] getVoices()
          Return an array of all 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
 

Constructor Detail

DTKVoice

public DTKVoice(Voice voice)
Create a new DTKVoice object based on the given DECtalk Voice object.

Parameters:
voice - DECtalk Voice object
Method Detail

getAveragePitch

public float getAveragePitch()
Return the average pitch for this voice (in Hz).

Returns:
Average pitch (in Hz)

getPitchRange

public float getPitchRange()
Return the pitch range for this voice (in Hz).

Returns:
Pitch range (in Hz)

getVoices

public static DTKVoice[] getVoices()
Return an array of all voices.

Returns:
Array of voices

toString

public String toString()
Return a string representation of this object.

Overrides:
toString in class Object
Returns:
String representation


Copyright © 2007-2009 Kris Van Hees. All Rights Reserved.