public class MbrolaAudioOutput extends Object implements UtteranceProcessor
processUtterance
takes an utterance containing an open BufferedInputStream, from
which to read raw audio data provided by the external MBROLA binary. The
audio data is read and sent to the proper audio player.Modifier and Type | Field and Description |
---|---|
private static Logger |
LOGGER
Logger instance.
|
private static AudioFormat |
MBROLA_AUDIO
The raw audio data coming out of MBROLA is in native byte order,
16 kHz, 16 bit, mono
|
Constructor and Description |
---|
MbrolaAudioOutput() |
Modifier and Type | Method and Description |
---|---|
void |
processUtterance(Utterance utterance)
Reads audio data generated by the external MBROLA binary for the given
Utterance.
|
String |
toString()
Returns the string form of this object
|
private static final AudioFormat MBROLA_AUDIO
public MbrolaAudioOutput()
public void processUtterance(Utterance utterance) throws ProcessException
processUtterance
in interface UtteranceProcessor
utterance
- the utterance to generate wavesProcessException
- if an IOException is thrown during the
processing of the utteranceWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses