|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvoicexml.implementation.external.SocketExternalSynthesisListener
public final class SocketExternalSynthesisListener
Class to send the synthesized output as String to a connected serversocket on localhost.
| Constructor Summary | |
|---|---|
SocketExternalSynthesisListener()
Constructs a new SocketExternalSynthesisListener. |
|
| Method Summary | |
|---|---|
String |
getConcatenatedText(Node node)
Generates a formated String out of the contents of the Node and their childs. |
void |
outputError(ErrorEvent error)
An error occurred while an output processes an output. |
void |
outputStatusChanged(SynthesizedOutputEvent event)
Notification about status changes in the SynthesizedOutput. |
void |
setPort(int portnumber)
Set the port to be used. |
void |
start()
Starts this external synthesized output listener. |
void |
stop()
Stops this external synthesized output listener. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SocketExternalSynthesisListener()
| Method Detail |
|---|
public void setPort(int portnumber)
portnumber - used portpublic void outputStatusChanged(SynthesizedOutputEvent event)
SynthesizedOutput.
Sends synthesized text as String.
outputStatusChanged in interface SynthesizedOutputListenerevent - the output event.public String getConcatenatedText(Node node)
node - XML Node
public void outputError(ErrorEvent error)
SynthesizedOutputListener
This method is intended to feed back errors that happen while the
SystemOutput processes an output asynchronously.
Errors that happen while the output is queued should be reported
by throwing an appropriate error in the
SystemOutput.queueSpeakable(org.jvoicexml.SpeakableText, String, org.jvoicexml.DocumentServer)
method.
outputError in interface SynthesizedOutputListenererror - the errorpublic void start()
start in interface ExternalSynthesisListenerpublic void stop()
stop in interface ExternalSynthesisListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||