public class AudioOutput extends Object implements UtteranceProcessor
procesUtterance
takes an utterance and hands it off to the LPCResult to be sent to the
proper audio player.LPCResult
Modifier and Type | Field and Description |
---|---|
private static AudioFormat |
AUDIO_16KHZ |
private static AudioFormat |
AUDIO_8KHZ |
private static Logger |
LOGGER
Logger instance.
|
Constructor and Description |
---|
AudioOutput() |
Modifier and Type | Method and Description |
---|---|
private AudioFormat |
getAudioFormat(SampleInfo sampleInfo)
Gets the current audio format.
|
void |
processUtterance(Utterance utterance)
Generates audio waves for the given Utterance.
|
String |
toString()
Returns the string form of this object
|
private static final AudioFormat AUDIO_8KHZ
private static final AudioFormat AUDIO_16KHZ
public AudioOutput()
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 utteranceLPCResult
private AudioFormat getAudioFormat(SampleInfo sampleInfo)
sampleInfo
- the sample infoWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses