org.jvoicexml.implementation.jsapi10.jvxml
Class FreeTTSConnectionHandler
java.lang.Object
org.jvoicexml.implementation.jsapi10.jvxml.FreeTTSConnectionHandler
- All Implemented Interfaces:
- SynthesizedOutputConnectionHandler
public final class FreeTTSConnectionHandler
- extends Object
- implements SynthesizedOutputConnectionHandler
An RTP based connection handler for FreeTTS.
- Since:
- 0.6
Copyright © 2007-2008 JVoiceXML group - http://jvoicexml.sourceforge.net/
- Version:
- $Revision: 2708 $
- Author:
- Dirk Schnelle
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FreeTTSConnectionHandler
public FreeTTSConnectionHandler()
connect
public void connect(ConnectionInformation client,
SynthesizedOutput output,
Synthesizer synthesizer)
throws IOException
- Establishes a connection from the given
ConnectionInformation to this
object.
- Specified by:
connect in interface SynthesizedOutputConnectionHandler
- Parameters:
client - data container with connection relevant data.output - the current synthesized output.synthesizer - the current synthesizer.
- Throws:
IOException - error establishing the connection.
disconnect
public void disconnect(ConnectionInformation client,
SynthesizedOutput output,
Synthesizer synthesizer)
- Disconnects a previously established connection.
- Specified by:
disconnect in interface SynthesizedOutputConnectionHandler
- Parameters:
client - data container with connection relevant data.output - the current synthesized output.synthesizer - the current synthesizer.
getUriForNextSynthesisizedOutput
public URI getUriForNextSynthesisizedOutput(ConnectionInformation client)
throws NoresourceError
- Delegate from
SynthesizedOutput.getUriForNextSynthesisizedOutput()
.
- Specified by:
getUriForNextSynthesisizedOutput in interface SynthesizedOutputConnectionHandler
- Parameters:
client - data container with connection relevant data.
- Returns:
- URI of the input source, maybe
null if the
streaming uses other means of audio output.
- Throws:
NoresourceError - Error accessing the device.
Copyright © 2005-2009JVoiceXML group.