|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvoicexml.implementation.mrcpv2.Mrcpv2SynthesizedOutput
public final class Mrcpv2SynthesizedOutput
Audio output that uses the MRCPv2 to address the TTS engine.
Handle all MRCPv2 calls to the TTS engine.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.speechforge.cairo.client.SpeechEventListener |
|---|
org.speechforge.cairo.client.SpeechEventListener.DtmfEventType, org.speechforge.cairo.client.SpeechEventListener.SpeechEventType |
| Constructor Summary | |
|---|---|
Mrcpv2SynthesizedOutput()
Constructs a object. |
|
| Method Summary | |
|---|---|
void |
activate()
|
void |
addListener(SynthesizedOutputListener outputListener)
|
void |
cancelOutput()
|
void |
characterEventReceived(String c,
org.speechforge.cairo.client.SpeechEventListener.DtmfEventType status)
|
void |
close()
|
void |
connect(ConnectionInformation client)
|
void |
disconnect(ConnectionInformation client)
|
int |
getRtpReceiverPort()
|
org.speechforge.cairo.client.SessionManager |
getSessionManager()
|
String |
getType()
|
URI |
getUriForNextSynthesisizedOutput()
|
boolean |
isBusy()
|
void |
open()
|
void |
passivate()
|
void |
queuePlaintext(String text)
Speaks a plain text string. |
void |
queueSpeakable(SpeakableText speakable,
String sessionId,
DocumentServer documentServer)
Checks the type of the given speakable and forwards it either as for SSML output or for plain text output. |
void |
recognitionEventReceived(org.speechforge.cairo.client.SpeechEventListener.SpeechEventType event,
org.speechforge.cairo.client.recog.RecognitionResult result)
|
void |
removeListener(SynthesizedOutputListener outputListener)
|
void |
setRtpReceiverPort(int port)
Sets the RTP receiver port. |
void |
setSessionManager(org.speechforge.cairo.client.SessionManager manager)
|
void |
setType(String resourceType)
Sets the type of this resource. |
void |
speechSynthEventReceived(org.speechforge.cairo.client.SpeechEventListener.SpeechEventType event)
|
boolean |
supportsBargeIn()
|
void |
waitNonBargeInPlayed()
|
void |
waitQueueEmpty()
Convenient method to wait until all output is being played. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Mrcpv2SynthesizedOutput()
| Method Detail |
|---|
public void open()
throws NoresourceError
open in interface ExternalResourceNoresourceErrorpublic void close()
close in interface ExternalResourcepublic void addListener(SynthesizedOutputListener outputListener)
addListener in interface ObservableSynthesizedOutputpublic void removeListener(SynthesizedOutputListener outputListener)
removeListener in interface ObservableSynthesizedOutput
public void queueSpeakable(SpeakableText speakable,
String sessionId,
DocumentServer documentServer)
throws NoresourceError,
BadFetchError
queueSpeakable in interface SynthesizedOutputNoresourceError
BadFetchError
public void queuePlaintext(String text)
throws NoresourceError,
BadFetchError
text - String contains plain text to be spoken.
NoresourceError - No synthesizer allocated.
BadFetchError - Synthesizer in wrong state.public boolean supportsBargeIn()
supportsBargeIn in interface OutputDevice
public void cancelOutput()
throws NoresourceError
cancelOutput in interface OutputDeviceNoresourceErrorpublic void waitNonBargeInPlayed()
waitNonBargeInPlayed in interface SynthesizedOutputpublic void waitQueueEmpty()
waitQueueEmpty in interface SynthesizedOutputpublic void activate()
activate in interface ExternalResourcepublic void passivate()
passivate in interface ExternalResource
public void connect(ConnectionInformation client)
throws IOException
connect in interface RemoteConnectableIOExceptionpublic void disconnect(ConnectionInformation client)
disconnect in interface RemoteConnectablepublic String getType()
getType in interface ExternalResourcepublic void setType(String resourceType)
resourceType - type of the resource
public URI getUriForNextSynthesisizedOutput()
throws NoresourceError,
URISyntaxException
getUriForNextSynthesisizedOutput in interface SynthesizedOutputNoresourceError
URISyntaxExceptionpublic boolean isBusy()
isBusy in interface ExternalResourceisBusy in interface OutputDevicepublic void speechSynthEventReceived(org.speechforge.cairo.client.SpeechEventListener.SpeechEventType event)
speechSynthEventReceived in interface org.speechforge.cairo.client.SpeechEventListener
public void recognitionEventReceived(org.speechforge.cairo.client.SpeechEventListener.SpeechEventType event,
org.speechforge.cairo.client.recog.RecognitionResult result)
recognitionEventReceived in interface org.speechforge.cairo.client.SpeechEventListener
public void characterEventReceived(String c,
org.speechforge.cairo.client.SpeechEventListener.DtmfEventType status)
characterEventReceived in interface org.speechforge.cairo.client.SpeechEventListenerpublic int getRtpReceiverPort()
public void setRtpReceiverPort(int port)
port - the receiverPort to setpublic org.speechforge.cairo.client.SessionManager getSessionManager()
public void setSessionManager(org.speechforge.cairo.client.SessionManager manager)
manager - the sessionManager to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||