|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jvoicexml.implementation.mary.MarySynthesizedOutput
public final class MarySynthesizedOutput
An implementation of the SynthesizedOutput for the Mary TTS System.
| Constructor Summary | |
|---|---|
MarySynthesizedOutput()
Constructs a new MarySynthesizedOutput object. |
|
| Method Summary | |
|---|---|
void |
activate()
|
void |
addListener(SynthesizedOutputListener outputListener)
|
void |
cancelAudioOutput()
Stops the currently playing Audio. |
void |
cancelOutput()
|
void |
close()
|
void |
connect(ConnectionInformation info)
It creates the MaryClient and starts the synthesisQueue thread. |
void |
disconnect(ConnectionInformation info)
|
String |
getType()
|
URI |
getUriForNextSynthesisizedOutput()
|
boolean |
isBusy()
|
void |
open()
|
void |
outputError(ErrorEvent error)
|
void |
outputStatusChanged(SynthesizedOutputEvent event)
Gets the events fired from SynthesisQueue thread and it forwards them. |
void |
passivate()
|
void |
queueSpeakable(SpeakableText speakable,
String sessionId,
DocumentServer server)
The queueSpeakable method simply offers a speakable to the queue. |
void |
removeListener(SynthesizedOutputListener outputListener)
|
void |
setAudioType(String value)
Sets the audio output. |
void |
setLang(String lang)
Sets the language. |
void |
setType(String resourceType)
Sets the type of this resource. |
void |
setVoiceName(String name)
Sets the name of the voice to use. |
boolean |
supportsBargeIn()
|
void |
waitNonBargeInPlayed()
|
void |
waitQueueEmpty()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MarySynthesizedOutput()
| Method Detail |
|---|
public URI getUriForNextSynthesisizedOutput()
throws NoresourceError,
URISyntaxException
getUriForNextSynthesisizedOutput in interface SynthesizedOutputNoresourceError
URISyntaxException
public void queueSpeakable(SpeakableText speakable,
String sessionId,
DocumentServer server)
throws NoresourceError
queueSpeakable in interface SynthesizedOutputNoresourceError - if no MaryClient has been createdpublic void waitNonBargeInPlayed()
waitNonBargeInPlayed in interface SynthesizedOutputpublic void waitQueueEmpty()
waitQueueEmpty in interface SynthesizedOutputpublic void activate()
activate in interface ExternalResourcepublic void close()
close in interface ExternalResourcepublic String getType()
getType in interface ExternalResource
public void open()
throws NoresourceError
open in interface ExternalResourceNoresourceErrorpublic void passivate()
passivate in interface ExternalResource
public void connect(ConnectionInformation info)
throws IOException
connect in interface RemoteConnectableIOExceptionpublic void disconnect(ConnectionInformation info)
disconnect in interface RemoteConnectablepublic void cancelOutput()
cancelOutput in interface OutputDevicepublic boolean supportsBargeIn()
supportsBargeIn in interface OutputDevicetruepublic void addListener(SynthesizedOutputListener outputListener)
addListener in interface ObservableSynthesizedOutputpublic void removeListener(SynthesizedOutputListener outputListener)
removeListener in interface ObservableSynthesizedOutputpublic void setType(String resourceType)
resourceType - type of the resourcepublic void outputStatusChanged(SynthesizedOutputEvent event)
outputStatusChanged in interface SynthesizedOutputListenerevent - the event.public boolean isBusy()
isBusy in interface ExternalResourceisBusy in interface OutputDevice
public void cancelAudioOutput()
throws NoresourceError
NoresourceError - .public void setAudioType(String value)
value - the new audio typepublic void setVoiceName(String name)
name - the voice namepublic void setLang(String lang)
lang - the languagepublic void outputError(ErrorEvent error)
outputError in interface SynthesizedOutputListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||