|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jvoicexml.implementation.jsapi10.speakstrategy.SpeakSpeakStrategy
public final class SpeakSpeakStrategy
SSML strategy to play back a <speak> node.
| Constructor Summary | |
|---|---|
SpeakSpeakStrategy()
Creates a new object. |
|
| Method Summary | |
|---|---|
void |
setSSMLSpeakStrategyFactory(SSMLSpeakStrategyFactory strategyFactory)
Sets the factory to produce new speak strategies. |
void |
speak(Jsapi10SynthesizedOutput output,
org.jvoicexml.xml.SsmlNode node)
Speaks the given node. |
protected void |
speakChildNodes(Jsapi10SynthesizedOutput synthesizer,
org.jvoicexml.xml.SsmlNode node)
Calls the speak method for all child nodes of the given node. |
protected void |
waitQueueEmpty(Jsapi10SynthesizedOutput output)
Waits until the input queue of the synthesizer is empty. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpeakSpeakStrategy()
| Method Detail |
|---|
public void speak(Jsapi10SynthesizedOutput output,
org.jvoicexml.xml.SsmlNode node)
throws NoresourceError,
BadFetchError
output - the synthesizer to use.node - The node to speak.
NoresourceError - No recognizer allocated.
BadFetchError - Recognizer in wrong state.public void setSSMLSpeakStrategyFactory(SSMLSpeakStrategyFactory strategyFactory)
strategyFactory - the factory.
protected void speakChildNodes(Jsapi10SynthesizedOutput synthesizer,
org.jvoicexml.xml.SsmlNode node)
throws NoresourceError,
BadFetchError
synthesizer - The synthesized output to use.node - The current node.
NoresourceError - No recognizer allocated.
BadFetchError - Recognizer in wrong state.
protected void waitQueueEmpty(Jsapi10SynthesizedOutput output)
throws NoresourceError
This method uses the encapsulated Synthesizer to look at the
current queue regardless of what is coming from the voice browser.
output - the current synthesized output
NoresourceError - error waiting for an empty queue
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||