org.jvoicexml.implementation.red5
Class Red5SynthesizedOutput

java.lang.Object
  extended by org.jvoicexml.implementation.red5.Red5SynthesizedOutput
All Implemented Interfaces:
ExternalResource, ObservableSynthesizedOutput, OutputDevice, SynthesizedOutput, RemoteConnectable

public class Red5SynthesizedOutput
extends Object
implements SynthesizedOutput

Demo implementation for a synthesized output using the Red5 server.

Since:
0.7.4
Author:
Dirk Schnelle-Walka, Mohamed Ali

Constructor Summary
Red5SynthesizedOutput()
           
 
Method Summary
 void activate()
          
 void addListener(SynthesizedOutputListener listener)
          
 void cancelOutput()
          
 void close()
          
 void connect(ConnectionInformation client)
          
 void disconnect(ConnectionInformation client)
          
 String getType()
          
 URI getUriForNextSynthesisizedOutput()
           
 boolean isBusy()
          
 void open()
          
 void passivate()
          
 void queueSpeakable(SpeakableText speakable, String sessionId, DocumentServer documentServer)
          
 void removeListener(SynthesizedOutputListener listener)
          
 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

Red5SynthesizedOutput

public Red5SynthesizedOutput()
Method Detail

getType

public String getType()

Specified by:
getType in interface ExternalResource

open

public void open()
          throws NoresourceError

Specified by:
open in interface ExternalResource
Throws:
NoresourceError

activate

public void activate()
              throws NoresourceError

Specified by:
activate in interface ExternalResource
Throws:
NoresourceError

passivate

public void passivate()
               throws NoresourceError

Specified by:
passivate in interface ExternalResource
Throws:
NoresourceError

close

public void close()

Specified by:
close in interface ExternalResource

isBusy

public boolean isBusy()

Specified by:
isBusy in interface ExternalResource
Specified by:
isBusy in interface OutputDevice

connect

public void connect(ConnectionInformation client)
             throws IOException

Specified by:
connect in interface RemoteConnectable
Throws:
IOException

disconnect

public void disconnect(ConnectionInformation client)

Specified by:
disconnect in interface RemoteConnectable

supportsBargeIn

public boolean supportsBargeIn()

Specified by:
supportsBargeIn in interface OutputDevice

cancelOutput

public void cancelOutput()
                  throws NoresourceError

Specified by:
cancelOutput in interface OutputDevice
Throws:
NoresourceError

addListener

public void addListener(SynthesizedOutputListener listener)

Specified by:
addListener in interface ObservableSynthesizedOutput

removeListener

public void removeListener(SynthesizedOutputListener listener)

Specified by:
removeListener in interface ObservableSynthesizedOutput

getUriForNextSynthesisizedOutput

public URI getUriForNextSynthesisizedOutput()
                                     throws NoresourceError,
                                            URISyntaxException
Specified by:
getUriForNextSynthesisizedOutput in interface SynthesizedOutput
Throws:
NoresourceError
URISyntaxException

queueSpeakable

public void queueSpeakable(SpeakableText speakable,
                           String sessionId,
                           DocumentServer documentServer)
                    throws NoresourceError,
                           BadFetchError

Specified by:
queueSpeakable in interface SynthesizedOutput
Throws:
NoresourceError
BadFetchError

waitNonBargeInPlayed

public void waitNonBargeInPlayed()

Specified by:
waitNonBargeInPlayed in interface SynthesizedOutput

waitQueueEmpty

public void waitQueueEmpty()

Specified by:
waitQueueEmpty in interface SynthesizedOutput


Copyright © 2010JVoiceXML group.