|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--JStreamAudioListener
a basic implementation of com.elantts.tts.jsapi.ElanAudioListener that writes received bytes in a java.io.OutputStream (for example a java.io.FileOutputStream).
| Field Summary | |
protected java.io.OutputStream |
mOutput
The stream where sound will be write. |
| Constructor Summary | |
JStreamAudioListener()
|
|
| Method Summary | |
void |
close()
close the target OutputStream |
int |
getFreeSpace()
should return the available bytes count in the OutputStream. |
void |
open(java.io.OutputStream stream)
register the target OutputStream. |
void |
write(byte[] signal,
int off,
int len)
Writes the received bytes in the OutputStream registerd by open.. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.io.OutputStream mOutput
| Constructor Detail |
public JStreamAudioListener()
| Method Detail |
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.public void open(java.io.OutputStream stream)
stream - a valid oppened java.io.OutputStream
public void close()
throws javax.speech.AudioException
javax.speech.AudioException - if cannot close.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||