|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmarytts.modules.phonemiser.AllophoneSet
public class AllophoneSet
| Method Summary | |
|---|---|
boolean |
checkAllophoneSyntax(java.lang.String allophoneString)
Check whether the given allophone string has a correct syntax according to this allophone set. |
static AllophoneSet |
determineAllophoneSet(org.w3c.dom.Element e)
For an element in a MaryXML document, do what you can to determine the appropriate AllophoneSet. |
static AllophoneSet |
determineAllophoneSet(java.util.Locale locale)
Try to determine the Allophone set to use for the given locale. |
Allophone |
getAllophone(java.lang.String ph)
Get the allophone with the given name, or null if there is no such allophone. |
java.util.Set<java.lang.String> |
getAllophoneNames()
This returns the names of all allophones contained in this AllophoneSet, as a Set of Strings |
static AllophoneSet |
getAllophoneSet(java.lang.String filename)
Return the allophone set specified by the given filename. |
java.util.Locale |
getLocale()
|
java.lang.String |
getPhoneFeature(java.lang.String ph,
java.lang.String featureName)
For the Allophone with name ph, return the value of the named feature. |
java.util.Set<java.lang.String> |
getPhoneFeatures()
Get the list of available phone features for this allophone set. |
java.lang.String[] |
getPossibleFeatureValues(java.lang.String featureName)
For the given feature name, get the list of all possible values that the feature can take in this allophone set. |
Allophone |
getSilence()
Obtain the silence allophone in this AllophoneSet |
Syllabifier |
getSyllabifier()
|
java.lang.String |
splitAllophoneString(java.lang.String allophoneString)
Split allophone string into a list of allophone symbols. |
Allophone[] |
splitIntoAllophones(java.lang.String allophoneString)
Split a phonetic string into allophone symbols. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static AllophoneSet getAllophoneSet(java.lang.String filename)
throws MaryConfigurationException
filename -
MaryConfigurationException - if no allophone set can be loaded from the given file.
public static AllophoneSet determineAllophoneSet(org.w3c.dom.Element e)
throws MaryConfigurationException
e -
MaryConfigurationException - if a suitable allophone set exists in principle, but there were problems loading it.
public static AllophoneSet determineAllophoneSet(java.util.Locale locale)
throws MaryConfigurationException
allophoneSet - locale -
MaryConfigurationException - if an allophone set exists for the given locale in principle, but there were problems loading it.public java.util.Locale getLocale()
public Syllabifier getSyllabifier()
public Allophone getAllophone(java.lang.String ph)
ph -
public Allophone getSilence()
public java.lang.String getPhoneFeature(java.lang.String ph,
java.lang.String featureName)
ph - featureName -
public java.util.Set<java.lang.String> getPhoneFeatures()
public java.lang.String[] getPossibleFeatureValues(java.lang.String featureName)
featureName -
java.lang.IllegalArgumentException - if featureName is not a known feature name.public java.util.Set<java.lang.String> getAllophoneNames()
public Allophone[] splitIntoAllophones(java.lang.String allophoneString)
allophoneString - the phonetic string to split
java.lang.IllegalArgumentException - if the allophoneString contains unknown symbols.public java.lang.String splitAllophoneString(java.lang.String allophoneString)
allophoneString -
java.lang.IllegalArgumentException - if the string contains illegal symbols.public boolean checkAllophoneSyntax(java.lang.String allophoneString)
allophoneString -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||