Package com.sun.speech.freetts.lexicon
Interface LetterToSound
-
- All Known Implementing Classes:
LetterToSoundImpl
public interface LetterToSound
Provides the phone list for words using letter-to-sound rules. The phone list is implementation dependent.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String[]
getPhones(java.lang.String word, java.lang.String partOfSpeech)
Calculate the phone list for a given word.
-
-
-
Method Detail
-
getPhones
java.lang.String[] getPhones(java.lang.String word, java.lang.String partOfSpeech)
Calculate the phone list for a given word. If a phone list cannot be determined,null
is returned. The phone list is implementation dependent. The format of thepartOfSpeech
is also implementation. If thepartOfSpeech
does not matter, pass innull
.- Parameters:
word
- the word to get the phone list forpartOfSpeech
- the part of speech ornull
- Returns:
- the list of phones for word or
null
-
-