Package de.dfki.lt.freetts.mbrola
Class MbrolaAudioOutput
- java.lang.Object
-
- de.dfki.lt.freetts.mbrola.MbrolaAudioOutput
-
- All Implemented Interfaces:
UtteranceProcessor
public class MbrolaAudioOutput extends java.lang.Object implements UtteranceProcessor
Supports generating audio output from an MBROLA-synthesized utterance. This is an utterance processor. The primary method,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.
-
-
Constructor Summary
Constructors Constructor Description MbrolaAudioOutput()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
processUtterance(Utterance utterance)
Reads audio data generated by the external MBROLA binary for the given Utterance.java.lang.String
toString()
Returns the string form of this object
-
-
-
Method Detail
-
processUtterance
public void processUtterance(Utterance utterance) throws ProcessException
Reads audio data generated by the external MBROLA binary for the given Utterance. The data is read from the open BufferedInputStream associated with the Utterance, and written into the AudioPlayer.- Specified by:
processUtterance
in interfaceUtteranceProcessor
- Parameters:
utterance
- the utterance to generate waves- Throws:
ProcessException
- if an IOException is thrown during the processing of the utterance
-
toString
public java.lang.String toString()
Returns the string form of this object- Overrides:
toString
in classjava.lang.Object
- Returns:
- the string form of this object
-
-