de.dfki.lt.mary.unitselection
Class UnitSelectionVoice

java.lang.Object
  extended by de.dfki.lt.mary.modules.synthesis.Voice
      extended by de.dfki.lt.mary.unitselection.UnitSelectionVoice

public class UnitSelectionVoice
extends Voice

A Unit Selection Voice


Nested Class Summary
 
Nested classes/interfaces inherited from class de.dfki.lt.mary.modules.synthesis.Voice
Voice.Gender
 
Field Summary
protected  UnitConcatenator concatenator
           
protected  UnitDatabase database
           
protected  java.lang.String domain
           
protected  CART durationCart
           
protected  FeatureDefinition durationCartFeatDef
           
protected  java.lang.String exampleText
           
protected  CART[] f0Carts
           
protected  FeatureDefinition f0CartsFeatDef
           
protected  java.lang.String name
           
protected  UnitSelector unitSelector
           
 
Fields inherited from class de.dfki.lt.mary.modules.synthesis.Voice
AF16000, AF16000BE, AF22050, FEMALE, MALE
 
Constructor Summary
UnitSelectionVoice(UnitDatabase database, UnitSelector unitSelector, UnitConcatenator concatenator, java.lang.String[] nameArray, java.util.Locale locale, javax.sound.sampled.AudioFormat dbAudioFormat, WaveformSynthesizer synthesizer, Voice.Gender gender, int topStart, int topEnd, int baseStart, int baseEnd, java.lang.String domain, java.lang.String exampleTextFile, CART durationCart, CART[] f0Carts, FeatureDefinition durationCartFeatDef, FeatureDefinition f0CartsFeatDef)
          Build a new UnitSelectionVoice
 
Method Summary
 UnitConcatenator getConcatenator()
          Gets the unit concatenator of this voice
 UnitDatabase getDatabase()
          Gets the database of this voice
 java.lang.String getDomain()
          Gets the domain of this voice
 FeatureDefinition getDurationCartFeatDef()
           
 CART getDurationTree()
           
 java.lang.String getExampleText()
           
 FeatureDefinition getF0CartsFeatDef()
           
 CART[] getF0Trees()
           
 UnitSelector getUnitSelector()
          Gets the unit selector of this voice
 void readExampleText(java.lang.String file)
           
 
Methods inherited from class de.dfki.lt.mary.modules.synthesis.Voice
baseEnd, baseStart, convertSampa, dbAudioFormat, gender, getAvailableVoices, getAvailableVoices, getAvailableVoices, getAvailableVoices, getDefaultVoice, getHalfphoneTargetFeatureComputer, getLexicon, getLocale, getName, getPreferredModulesAcceptingType, getSampaPhoneme, getSampaPhonemeSet, getSuitableVoice, getTargetFeatureComputer, getVoice, getVoice, getVoice, hasName, registerVoice, registerVoice, sampa2voice, sampaString2voicePhonemeList, synthesize, synthesizer, topEnd, topStart, toString, useVoicePAInOutput, voice2sampa, voicePhonemeArray2sampaString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

database

protected UnitDatabase database

unitSelector

protected UnitSelector unitSelector

concatenator

protected UnitConcatenator concatenator

domain

protected java.lang.String domain

name

protected java.lang.String name

durationCart

protected CART durationCart

f0Carts

protected CART[] f0Carts

exampleText

protected java.lang.String exampleText

durationCartFeatDef

protected FeatureDefinition durationCartFeatDef

f0CartsFeatDef

protected FeatureDefinition f0CartsFeatDef
Constructor Detail

UnitSelectionVoice

public UnitSelectionVoice(UnitDatabase database,
                          UnitSelector unitSelector,
                          UnitConcatenator concatenator,
                          java.lang.String[] nameArray,
                          java.util.Locale locale,
                          javax.sound.sampled.AudioFormat dbAudioFormat,
                          WaveformSynthesizer synthesizer,
                          Voice.Gender gender,
                          int topStart,
                          int topEnd,
                          int baseStart,
                          int baseEnd,
                          java.lang.String domain,
                          java.lang.String exampleTextFile,
                          CART durationCart,
                          CART[] f0Carts,
                          FeatureDefinition durationCartFeatDef,
                          FeatureDefinition f0CartsFeatDef)
Build a new UnitSelectionVoice

Parameters:
database - the database of this voice
unitSelector - the unit selector of this voice
concatenator - the concatenator of this voice
path - ?
nameArray - the name(s) of this voice
locale - the language of this voice
dbAudioFormat - the AudioFormat of this voice
synthesizer - the synthesizer of this voice
gender - the gender of this voice
topStart - ?
topEnd - ?
baseStart - ?
baseEnd - ?
knownVoiceQualities - ?
lexicon - the name of the lexicon of this voice
domain - the domain of this voice
exampleTextFile - name of file containing example text for this voice (null for general domain voice)
Method Detail

getDatabase

public UnitDatabase getDatabase()
Gets the database of this voice

Returns:
the database

getUnitSelector

public UnitSelector getUnitSelector()
Gets the unit selector of this voice

Returns:
the unit selector

getConcatenator

public UnitConcatenator getConcatenator()
Gets the unit concatenator of this voice

Returns:
the unit selector

getDomain

public java.lang.String getDomain()
Gets the domain of this voice

Returns:
the domain

getExampleText

public java.lang.String getExampleText()

readExampleText

public void readExampleText(java.lang.String file)

getDurationTree

public CART getDurationTree()

getF0Trees

public CART[] getF0Trees()

getDurationCartFeatDef

public FeatureDefinition getDurationCartFeatDef()

getF0CartsFeatDef

public FeatureDefinition getF0CartsFeatDef()