de.dfki.lt.mary.modules.phonemiser
Class PhonemeSet

java.lang.Object
  extended by de.dfki.lt.mary.modules.phonemiser.PhonemeSet

public class PhonemeSet
extends java.lang.Object


Method Summary
 Phoneme getPhoneme(java.lang.String name)
          Return the Phoneme object with the given name (phonetic symbol), or null if no Phoneme has that name.
static PhonemeSet getPhonemeSet(java.lang.String filename)
          Return the phoneme set specified by the given filename.
 Syllabifier getSyllabifier()
           
 Phoneme[] splitIntoPhonemes(java.lang.String phonemeString)
          Split a phoneme string into phonemes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPhonemeSet

public static PhonemeSet getPhonemeSet(java.lang.String filename)
                                throws org.xml.sax.SAXException,
                                       java.io.IOException,
                                       javax.xml.parsers.ParserConfigurationException
Return the phoneme set specified by the given filename. It will only be loaded if it was not loaded before.

Throws:
org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException

getSyllabifier

public Syllabifier getSyllabifier()

getPhoneme

public Phoneme getPhoneme(java.lang.String name)
Return the Phoneme object with the given name (phonetic symbol), or null if no Phoneme has that name.


splitIntoPhonemes

public Phoneme[] splitIntoPhonemes(java.lang.String phonemeString)
Split a phoneme string into phonemes. Any non-phoneme characters in the string will be ignored.

Parameters:
phonemeString - the phoneme string to split