de.dfki.lt.freetts.mbrola
Class MbrolaCaller

java.lang.Object
  extended byde.dfki.lt.freetts.mbrola.MbrolaCaller
All Implemented Interfaces:
UtteranceProcessor

public class MbrolaCaller
extends java.lang.Object
implements UtteranceProcessor

Calls external MBROLA binary to synthesise the utterance.


Constructor Summary
MbrolaCaller(java.lang.String[] cmd)
          Create an Mbrola caller which will call an external MBROLA binary using the command cmd.
 
Method Summary
 void processUtterance(Utterance utterance)
          Call external MBROLA binary to synthesise the utterance.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MbrolaCaller

public MbrolaCaller(java.lang.String[] cmd)
Create an Mbrola caller which will call an external MBROLA binary using the command cmd. The command string is used as it is, which means that it must contain full path specifications and the correct file separators.

Method Detail

processUtterance

public void processUtterance(Utterance utterance)
                      throws ProcessException
Call external MBROLA binary to synthesise the utterance.

Specified by:
processUtterance in interface UtteranceProcessor
Parameters:
utterance - the utterance to process
Throws:
ProcessException - if an error occurs while processing of the utterance

toString

public java.lang.String toString()