|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alchar.jdtk.jsapi.DTKSynthesizerProperties
public class DTKSynthesizerProperties
This class provides an implementation of the JSAPI 1.0 SynthesizerProperties interface for the DECtalk software speech synthesizer.
| Constructor Summary | |
|---|---|
DTKSynthesizerProperties()
Create a new synthesizer properties object with default values. |
|
DTKSynthesizerProperties(Voice voice,
float averagePitch,
float pitchRange,
float rate,
float volume)
Create a new synthesizer properties object with the given values. |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list of this object. |
Component |
getControlComponent()
Return the component that provides the default user interface for setting the properties. |
float |
getPitch()
Return the average pitch (in Hz). |
float |
getPitchRange()
Return the pitch range (in Hz). |
float |
getSpeakingRate()
Return the speaking rate (in words per minute). |
Voice |
getVoice()
Return the voice. |
float |
getVolume()
Return the volume as a value within the closed range [0.0, 1.0]. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove a PropertyChangeListener from the listener list of this object. |
void |
reset()
Reset the object state. |
void |
sendPropertyChangeEvent(PropertyChangeEvent ev)
Send a property change event to all the listeners. |
void |
sendPropertyChangeEvent(String name,
float oldValue,
float newValue)
Send a property change event for a float property value change. |
void |
sendPropertyChangeEvent(String name,
Object oldValue,
Object newValue)
Send a property change event for an object property value change. |
void |
setPitch(float averagePitch)
Set the average pitch (in Hz). |
void |
setPitchRange(float pitchRange)
Set the pitch range (in Hz). |
void |
setSpeakingRate(float rate)
Set the speaking rate (in words per minute). |
void |
setVoice(Voice voice)
Set the voice. |
void |
setVolume(float volume)
Set the volume as a value within the closed range [0.0, 1.0]. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DTKSynthesizerProperties()
public DTKSynthesizerProperties(Voice voice,
float averagePitch,
float pitchRange,
float rate,
float volume)
voice - Default voiceaveragePitch - Average pitchpitchRange - Pitch rangerate - Speaking ratevolume - Volume| Method Detail |
|---|
public float getPitchRange()
getPitchRange in interface SynthesizerProperties
public void setPitchRange(float pitchRange)
throws PropertyVetoException
setPitchRange in interface SynthesizerPropertiespitchRange - Pitch range (in Hz)
PropertyVetoException - if the value cannot be setpublic float getPitch()
getPitch in interface SynthesizerProperties
public void setPitch(float averagePitch)
throws PropertyVetoException
setPitch in interface SynthesizerPropertiesaveragePitch - Average pitch (in Hz)
PropertyVetoException - if the value cannot be setpublic float getSpeakingRate()
getSpeakingRate in interface SynthesizerProperties
public void setSpeakingRate(float rate)
throws PropertyVetoException
setSpeakingRate in interface SynthesizerPropertiesrate - Speaking rate (in words per minute)
PropertyVetoException - if the value cannot be setpublic Voice getVoice()
getVoice in interface SynthesizerProperties
public void setVoice(Voice voice)
throws PropertyVetoException
setVoice in interface SynthesizerPropertiesvoice - Voice
PropertyVetoException - if the value cannot be setpublic float getVolume()
getVolume in interface SynthesizerProperties
public void setVolume(float volume)
throws PropertyVetoException
setVolume in interface SynthesizerPropertiesvolume - Volume
PropertyVetoException - if the value cannot be setpublic void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener in interface EnginePropertieslistener - Property change listenerpublic void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener in interface EnginePropertiespublic void reset()
reset in interface EnginePropertiespublic Component getControlComponent()
getControlComponent in interface EnginePropertiespublic void sendPropertyChangeEvent(PropertyChangeEvent ev)
ev - Property change event
public void sendPropertyChangeEvent(String name,
Object oldValue,
Object newValue)
name - Property nameoldValue - Old valuenewValue - New value
public void sendPropertyChangeEvent(String name,
float oldValue,
float newValue)
name - Property nameoldValue - Old valuenewValue - New value
|
|||||||||
| 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.