org.jvoicexml.implementation.jsapi10
Interface StreamableSynthesizedOutput

All Known Implementing Classes:
Jsapi10SynthesizedOutput

public interface StreamableSynthesizedOutput

Facility to support audio streaming to any Telephony that can handle streams.

Since:
0.6

Copyright © 2008 JVoiceXML group - http://jvoicexml.sourceforge.net/

Version:
$Revision: 2355 $
Author:
Dirk Schnell

Method Summary
 int readSynthesizerStream(byte[] buffer, int offset, int length)
          Reads up to length bytes of data from the synthesizer stream into the given buffer.
 

Method Detail

readSynthesizerStream

int readSynthesizerStream(byte[] buffer,
                          int offset,
                          int length)
                          throws IOException
Reads up to length bytes of data from the synthesizer stream into the given buffer.

Parameters:
buffer - the buffer into which the data is read.
offset - the start offset in array buffer at which the data is written.
length - the maximum number of bytes to read.
Returns:
the total number of bytes read into the buffer, or -1 if there is no more data because the end of the stream has been reached.
Throws:
IOException - Error reading from the stream..


Copyright © 2005-2009JVoiceXML group.