marytts.vocalizations
Class VocalizationSynthesizer

java.lang.Object
  extended by marytts.vocalizations.VocalizationSynthesizer

public class VocalizationSynthesizer
extends java.lang.Object

The vocalization synthesis module.

Author:
Sathish Pammi

Field Summary
protected  TimelineReader audioTimeline
           
protected  boolean f0ContourImposeSupport
           
protected  FeatureDefinition f0FeatureDefinition
           
protected  FeatureDefinition featureDefinition
           
protected  VocalizationFeatureFileReader featureFileReader
           
protected  org.apache.log4j.Logger logger
           
protected  float maxCandidateCost
           
protected  float maxF0Cost
           
protected  int noOfSuitableUnits
           
protected  int samplingRate
           
protected  VocalizationUnitFileReader unitFileReader
           
protected  VocalizationFFRTargetCostFunction vffrtCostFunction
           
protected  VocalizationFFRTargetCostFunction vffrtIntonationCostFunction
           
protected  VocalizationIntonationReader vIntonationReader
           
 
Constructor Summary
VocalizationSynthesizer(Voice voice)
           
 
Method Summary
 java.lang.String[] listAvailableVocalizations()
          List the possible vocalization names that are available for the given voice.
 javax.sound.sampled.AudioInputStream synthesize(Voice voice, javax.sound.sampled.AudioFileFormat aft, org.w3c.dom.Element domElement)
          Handle a synthesize request
 javax.sound.sampled.AudioInputStream synthesizeImposedIntonation(Voice voice, javax.sound.sampled.AudioFileFormat aft, org.w3c.dom.Element domElement)
          Synthesize a vocalization which fits better for given target, in addition, impose intonation from closest best vocalization according to given feature definition for intonation selection
 javax.sound.sampled.AudioInputStream synthesizeSelectedVocalization(int backchannelNumber, javax.sound.sampled.AudioFileFormat aft, org.w3c.dom.Element domElement)
          Synthesize a selected vocalization
 javax.sound.sampled.AudioInputStream synthesizeVariant(Voice voice, javax.sound.sampled.AudioFileFormat aft, org.w3c.dom.Element domElement)
          Synthesize a "variant" vocalization
 javax.sound.sampled.AudioInputStream synthesizeVocalization(Voice voice, javax.sound.sampled.AudioFileFormat aft, org.w3c.dom.Element domElement)
          Synthesize a vocalization which fits better for given target
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

audioTimeline

protected TimelineReader audioTimeline

unitFileReader

protected VocalizationUnitFileReader unitFileReader

samplingRate

protected int samplingRate

f0ContourImposeSupport

protected boolean f0ContourImposeSupport

featureFileReader

protected VocalizationFeatureFileReader featureFileReader

featureDefinition

protected FeatureDefinition featureDefinition

f0FeatureDefinition

protected FeatureDefinition f0FeatureDefinition

vIntonationReader

protected VocalizationIntonationReader vIntonationReader

noOfSuitableUnits

protected int noOfSuitableUnits

vffrtCostFunction

protected VocalizationFFRTargetCostFunction vffrtCostFunction

vffrtIntonationCostFunction

protected VocalizationFFRTargetCostFunction vffrtIntonationCostFunction

maxCandidateCost

protected float maxCandidateCost

maxF0Cost

protected float maxF0Cost

logger

protected org.apache.log4j.Logger logger
Constructor Detail

VocalizationSynthesizer

public VocalizationSynthesizer(Voice voice)
                        throws MaryConfigurationException
Throws:
MaryConfigurationException
Method Detail

synthesize

public javax.sound.sampled.AudioInputStream synthesize(Voice voice,
                                                       javax.sound.sampled.AudioFileFormat aft,
                                                       org.w3c.dom.Element domElement)
                                                throws java.lang.Exception
Handle a synthesize request

Parameters:
voice -
aft -
domElement -
Returns:
Throws:
java.lang.Exception

synthesizeVariant

public javax.sound.sampled.AudioInputStream synthesizeVariant(Voice voice,
                                                              javax.sound.sampled.AudioFileFormat aft,
                                                              org.w3c.dom.Element domElement)
                                                       throws java.lang.Exception
Synthesize a "variant" vocalization

Parameters:
voice -
aft -
domElement -
Returns:
Throws:
java.lang.Exception

synthesizeVocalization

public javax.sound.sampled.AudioInputStream synthesizeVocalization(Voice voice,
                                                                   javax.sound.sampled.AudioFileFormat aft,
                                                                   org.w3c.dom.Element domElement)
                                                            throws java.lang.Exception
Synthesize a vocalization which fits better for given target

Parameters:
voice -
aft -
domElement -
Returns:
Throws:
java.lang.Exception

synthesizeImposedIntonation

public javax.sound.sampled.AudioInputStream synthesizeImposedIntonation(Voice voice,
                                                                        javax.sound.sampled.AudioFileFormat aft,
                                                                        org.w3c.dom.Element domElement)
                                                                 throws java.lang.Exception
Synthesize a vocalization which fits better for given target, in addition, impose intonation from closest best vocalization according to given feature definition for intonation selection

Parameters:
voice -
aft -
domElement -
Returns:
Throws:
java.lang.Exception

synthesizeSelectedVocalization

public javax.sound.sampled.AudioInputStream synthesizeSelectedVocalization(int backchannelNumber,
                                                                           javax.sound.sampled.AudioFileFormat aft,
                                                                           org.w3c.dom.Element domElement)
                                                                    throws java.io.IOException
Synthesize a selected vocalization

Parameters:
backchannelNumber -
aft -
domElement -
Returns:
Throws:
java.io.IOException

listAvailableVocalizations

public java.lang.String[] listAvailableVocalizations()
List the possible vocalization names that are available for the given voice. These values can be used in the "name" attribute of the vocalization tag.

Returns:
an array of Strings, each string containing one unique vocalization name.