|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--JSoundCardAudioListener
A basic implementation of com.elantts.tts.jsapi.ElanAudioListener writing sound in soundcard buffer.
| Constructor Summary | |
JSoundCardAudioListener()
Creates a new instance of JSoundCardAudioListener |
|
| Method Summary | |
protected void |
finalize()
Called when the JSoundCard listener is no more referenced (garbage collector). |
int |
getFreeSpace()
should return the available bytes count in the allocated soundcard source data line. |
void |
setFormat(javax.sound.sampled.AudioFormat Format)
Register the current required AudioFormat to properly play the received sound. |
void |
write(byte[] signal,
int off,
int len)
Writes byte in soundcard buffer. |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JSoundCardAudioListener()
| Method Detail |
public void setFormat(javax.sound.sampled.AudioFormat Format)
throws javax.sound.sampled.LineUnavailableException
Format - an AudioFormat matching the selected voice.
javax.sound.sampled.LineUnavailableException - Thrown if the format is not supported.public int getFreeSpace()
getFreeSpace in interface ElanAudioListener
public void write(byte[] signal,
int off,
int len)
throws javax.speech.AudioException
write in interface ElanAudioListenersignal - see com.elantts.tts.jsapi.ElanAudioListener definition.off - see com.elantts.tts.jsapi.ElanAudioListener definition.len - see com.elantts.tts.jsapi.ElanAudioListener definition.
javax.speech.AudioException - see com.elantts.tts.jsapi.ElanAudioListener definition.protected void finalize()
finalize in class java.lang.Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||