de.dfki.lt.mary.modules
Class FreeTTS2FestivalUtt

java.lang.Object
  extended by de.dfki.lt.mary.modules.InternalModule
      extended by de.dfki.lt.mary.modules.FreeTTS2FestivalUtt
All Implemented Interfaces:
MaryModule

public class FreeTTS2FestivalUtt
extends InternalModule

A link to the synthesis part of festival.

Author:
Marc Schröder

Field Summary
static java.lang.String UTTMARKER
           
static java.lang.String VOICEMARKER
           
 
Fields inherited from class de.dfki.lt.mary.modules.InternalModule
logger, state
 
Fields inherited from interface de.dfki.lt.mary.modules.MaryModule
MODULE_OFFLINE, MODULE_RUNNING
 
Constructor Summary
FreeTTS2FestivalUtt()
           
 
Method Summary
 java.lang.String convertUtt(com.sun.speech.freetts.Utterance utt)
          Convert one utterance from FreeTTS representation to a string in FESTIVAL_UTT format, i.e.
 MaryData process(MaryData d)
          Perform this module's processing on abstract "MaryData" input d.
 
Methods inherited from class de.dfki.lt.mary.modules.InternalModule
getState, inputType, name, outputType, powerOnSelfTest, shutdown, startup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UTTMARKER

public static final java.lang.String UTTMARKER
See Also:
Constant Field Values

VOICEMARKER

public static final java.lang.String VOICEMARKER
See Also:
Constant Field Values
Constructor Detail

FreeTTS2FestivalUtt

public FreeTTS2FestivalUtt()
                    throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

process

public MaryData process(MaryData d)
Description copied from class: InternalModule
Perform this module's processing on abstract "MaryData" input d. Subclasses need to make sure that the process() method is thread-safe, because in server-mode, it will be called from different threads at the same time. A sensible way to do this seems to be not to use any global or static variables, or to use them read-only.

Specified by:
process in interface MaryModule
Overrides:
process in class InternalModule
Returns:
A MaryData object of type outputType() encapsulating the processing result.

This method just returns its input. Subclasses should override this.


convertUtt

public java.lang.String convertUtt(com.sun.speech.freetts.Utterance utt)
Convert one utterance from FreeTTS representation to a string in FESTIVAL_UTT format, i.e. as a sequence of Festival Relation files.

Parameters:
utt - the FreeTTS Utterance object ot be converted.
Returns:
a String representing utt in FESTIVAL_UTT format.