marytts.unitselection
Class UnitSelectionSynthesizer

java.lang.Object
  extended by marytts.unitselection.UnitSelectionSynthesizer
All Implemented Interfaces:
WaveformSynthesizer

public class UnitSelectionSynthesizer
extends java.lang.Object
implements WaveformSynthesizer

Builds and synthesizes unit selection voices

Author:
Marc Schröder, Anna Hunecke

Constructor Summary
UnitSelectionSynthesizer()
           
 
Method Summary
 void powerOnSelfTest()
          Perform a power-on self test by processing some example input data.
 void startup()
          Start up the waveform synthesizer.
 javax.sound.sampled.AudioInputStream synthesize(java.util.List<org.w3c.dom.Element> tokensAndBoundaries, Voice voice)
          Synthesize a given part of a MaryXML document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnitSelectionSynthesizer

public UnitSelectionSynthesizer()
Method Detail

startup

public void startup()
             throws java.lang.Exception
Start up the waveform synthesizer. This must be called once before calling synthesize().

Specified by:
startup in interface WaveformSynthesizer
Throws:
java.lang.Exception

powerOnSelfTest

public void powerOnSelfTest()
                     throws java.lang.Error
Perform a power-on self test by processing some example input data.

Specified by:
powerOnSelfTest in interface WaveformSynthesizer
Throws:
java.lang.Error - if the module does not work properly.

synthesize

public javax.sound.sampled.AudioInputStream synthesize(java.util.List<org.w3c.dom.Element> tokensAndBoundaries,
                                                       Voice voice)
                                                throws SynthesisException
Synthesize a given part of a MaryXML document. This method is expected to be thread-safe.

Specified by:
synthesize in interface WaveformSynthesizer
Parameters:
tokensAndBoundaries - the part of the MaryXML document to synthesize; a list containing a number of adjacent and elements.
Returns:
an AudioInputStream in synthesizer-native audio format.
Throws:
java.lang.IllegalArgumentException - if the voice requested for this section is incompatible with this WaveformSynthesizer.
SynthesisException