|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jvoicexml.implementation.mary.MaryAudioOutput
public final class MaryAudioOutput
Lineoutput for Mary.
| Constructor Summary | |
|---|---|
MaryAudioOutput(Object lock)
Constructs a new object. |
|
| Method Summary | |
|---|---|
void |
cancelOutput()
Cancels the currently playing audio. |
boolean |
isBusy()
Checks if there is currently an audio playing. |
void |
queueAudio(ByteArrayInputStream inputStream)
|
void |
update(LineEvent event)
Notifies the SynthesisQueue Thread that the audio has been played. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MaryAudioOutput(Object lock)
lock - object in which SynthesisQueue Thread waits until
audio playing is complete| Method Detail |
|---|
public void queueAudio(ByteArrayInputStream inputStream)
throws LineUnavailableException,
IOException,
UnsupportedAudioFileException
inputStream - that contains the processed data from the Mary Server
LineUnavailableException - if a clip object is not available
due to resource restrictions
IOException - if an I/O Exception occurs
UnsupportedAudioFileException - if the stream does not point to
valid audio file data recognized by the systempublic void cancelOutput()
public boolean isBusy()
true if there is an active output.public void update(LineEvent event)
update in interface LineListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||