marytts.language.en
Class DummyFreeTTSVoice

java.lang.Object
  extended by com.sun.speech.freetts.Voice
      extended by marytts.modules.DummyFreeTTSVoice
          extended by marytts.language.en.DummyFreeTTSVoice
All Implemented Interfaces:
com.sun.speech.freetts.Dumpable, com.sun.speech.freetts.UtteranceProcessor

public class DummyFreeTTSVoice
extends DummyFreeTTSVoice

Defines a dummy voice allowing to use FreeTTS UtteranceProcessors from "outside". Differing from the FreeTTS philosophy, this "voice" does *not* actually call the UtteranceProcessors. It only serves as a collection of data, such as the lexicon, and some reference values.


Field Summary
 
Fields inherited from class marytts.modules.DummyFreeTTSVoice
maryVoice, useBinaryIO
 
Fields inherited from class com.sun.speech.freetts.Voice
DATABASE_NAME, DEFAULT_AUDIO_PLAYER, DEFAULT_AUDIO_PLAYER_DEFAULT, FEATURE_JOIN_TYPE, FEATURE_SILENCE, PROP_PREFIX
 
Constructor Summary
DummyFreeTTSVoice()
          Creates a simple voice containing a reference to a marytts.modules.synthesis.Voice.
DummyFreeTTSVoice(Voice maryVoice, java.lang.String lexiconClassName)
          Creates a simple voice containing a reference to a marytts.modules.synthesis.Voice.
 
Method Summary
 void initialise(Voice aMaryVoice, java.lang.String lexiconClassName)
          Creates a simple voice containing a reference to a marytts.modules.synthesis.Voice.
protected  void setupFeatureProcessors()
          Sets up the FeatureProcessors for this Voice.
 java.lang.String toString()
          Converts this object to a string
 
Methods inherited from class marytts.modules.DummyFreeTTSVoice
allocate, getAudioOutput, getMaryVoice, getPhoneFeature, getTokenizer, loader, setupFeatureSet
 
Methods inherited from class com.sun.speech.freetts.Voice
addFeatureProcessor, createOutputThread, deallocate, dump, dumpProcessors, endBatch, error, getAge, getAudioPlayer, getDefaultAudioPlayer, getDescription, getDomain, getDurationStretch, getFeatureProcessor, getFeatures, getGender, getLexicon, getLocale, getName, getOrganization, getOutputQueue, getPitch, getPitchRange, getPitchShift, getRate, getResource, getRunTitle, getStyle, getUtteranceProcessors, getVolume, getWaveDumpFile, isDetailedMetrics, isDumpRelations, isDumpUtterance, isLoaded, isMetrics, isVerbose, load, log, processNode, processUtterance, setAge, setAudioPlayer, setDescription, setDetailedMetrics, setDomain, setDumpRelations, setDumpUtterance, setDurationStretch, setGender, setLexicon, setLoaded, setLocale, setMetrics, setName, setOrganization, setOutputQueue, setPitch, setPitchRange, setPitchShift, setRate, setRunTitle, setStyle, setVerbose, setVolume, setWaveDumpFile, speak, speak, speak, speak, startBatch, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DummyFreeTTSVoice

public DummyFreeTTSVoice()
Creates a simple voice containing a reference to a marytts.modules.synthesis.Voice. This default constructor must be followed by a meaningful call to initialise().


DummyFreeTTSVoice

public DummyFreeTTSVoice(Voice maryVoice,
                         java.lang.String lexiconClassName)
Creates a simple voice containing a reference to a marytts.modules.synthesis.Voice. This version sets up US English feature processors.

Parameters:
lexiconClassName - if not null, automatically load up the specified lexicon; otherwise, don't load any lexicon.
Throws:
java.lang.RuntimeException - if the class specified by lexiconClassName cannot be instantiated.
Method Detail

initialise

public void initialise(Voice aMaryVoice,
                       java.lang.String lexiconClassName)
Creates a simple voice containing a reference to a marytts.modules.synthesis.Voice.

Overrides:
initialise in class DummyFreeTTSVoice
Parameters:
lexiconClassName - if not null, automatically load up the specified lexicon; otherwise, don't load any lexicon.
Throws:
java.lang.RuntimeException - if the class specified by lexiconClassName cannot be instantiated.

setupFeatureProcessors

protected void setupFeatureProcessors()
                               throws java.io.IOException
Sets up the FeatureProcessors for this Voice.

Overrides:
setupFeatureProcessors in class DummyFreeTTSVoice
Throws:
java.io.IOException - if an I/O error occurs

toString

public java.lang.String toString()
Converts this object to a string

Overrides:
toString in class DummyFreeTTSVoice
Returns:
a string representation of this object