marytts.modules.synthesis
Class MbrolaVoice

java.lang.Object
  extended by marytts.modules.synthesis.Voice
      extended by marytts.modules.synthesis.MbrolaVoice

public class MbrolaVoice
extends Voice


Nested Class Summary
 
Nested classes/interfaces inherited from class marytts.modules.synthesis.Voice
Voice.Gender
 
Field Summary
 
Fields inherited from class marytts.modules.synthesis.Voice
AF16000, AF16000BE, AF22050, durationGraph, f0ContourFeatures, f0Graph, FEMALE, logger, MALE
 
Constructor Summary
MbrolaVoice(java.lang.String path, 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[] knownVoiceQualities, java.lang.String missingDiphonesPath)
           
 
Method Summary
 int baseEnd()
           
 int baseStart()
           
 java.util.Vector<MBROLAPhoneme> convertSampa(MBROLAPhoneme maryPhoneme)
          Convert the SAMPA dialect used in MARY into the SAMPA version used in this voice.
 boolean hasDiphone(MBROLAPhoneme p1, MBROLAPhoneme p2)
           
 boolean hasDiphone(java.lang.String diphone)
          Verify whether a diphone (p1-p2) is in the list of missing diphones.
 boolean hasVoiceQuality(java.lang.String vq)
           
 java.lang.String path()
           
 java.util.Vector<MBROLAPhoneme> replaceDiphone(MBROLAPhoneme p1, MBROLAPhoneme p2)
           
 java.lang.String sampa2voice(java.lang.String sampaPhoneme)
          Converts a single phonetic symbol in MARY sampa representation into its equivalent in voice-specific phonetic alphabet representation.
 int topEnd()
           
 int topStart()
           
 java.lang.String voice2sampa(java.lang.String voicePhoneme)
          Converts a single phonetic symbol in the voice phonetic alphabet representation representation into its equivalent in MARY sampa representation.
 
Methods inherited from class marytts.modules.synthesis.Voice
dbAudioFormat, gender, getAllophone, getAllophoneSet, getAvailableVoices, getAvailableVoices, getAvailableVoices, getAvailableVoices, getBackchannelSynthesizer, getDefaultVoice, getDurationGraph, getF0ContourFeatures, getF0Graph, getLexicon, getLocale, getName, getPreferredModulesAcceptingType, getSuitableVoice, getVoice, getVoice, getVoice, hasBackchannelSupport, hasName, registerVoice, synthesize, synthesizer, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MbrolaVoice

public MbrolaVoice(java.lang.String path,
                   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[] knownVoiceQualities,
                   java.lang.String missingDiphonesPath)
            throws MaryConfigurationException
Throws:
MaryConfigurationException
Method Detail

path

public java.lang.String path()

topStart

public int topStart()

topEnd

public int topEnd()

baseStart

public int baseStart()

baseEnd

public int baseEnd()

hasVoiceQuality

public boolean hasVoiceQuality(java.lang.String vq)

voice2sampa

public java.lang.String voice2sampa(java.lang.String voicePhoneme)
Converts a single phonetic symbol in the voice phonetic alphabet representation representation into its equivalent in MARY sampa representation.

Returns:
the converted phone, or the input string if no known conversion exists.

sampa2voice

public java.lang.String sampa2voice(java.lang.String sampaPhoneme)
Converts a single phonetic symbol in MARY sampa representation into its equivalent in voice-specific phonetic alphabet representation.

Returns:
the converted phone, or the input string if no known conversion exists.

convertSampa

public java.util.Vector<MBROLAPhoneme> convertSampa(MBROLAPhoneme maryPhoneme)
Convert the SAMPA dialect used in MARY into the SAMPA version used in this voice. Allow for one-to-many translations, taking care of duration and f0 target adjustments.

Returns:
a vector of MBROLAPhoneme objects realising this phone for this voice.

hasDiphone

public boolean hasDiphone(MBROLAPhoneme p1,
                          MBROLAPhoneme p2)

hasDiphone

public boolean hasDiphone(java.lang.String diphone)
Verify whether a diphone (p1-p2) is in the list of missing diphones.


replaceDiphone

public java.util.Vector<MBROLAPhoneme> replaceDiphone(MBROLAPhoneme p1,
                                                      MBROLAPhoneme p2)