Speech Automation 5.1
Object: SpUnCompressedLexicon
GetPronunciations Method
The GetPronunciations method gets the pronunciations and parts of speech for a word in the user or application lexicons.
An ISpeechLexiconPronunciation object contains a word's pronunciations, part of speech and phone IDs. Because a word may have more than one pronunciation and more than one part of speech, the GetPronunciations method returns a collection of these objects.
SpUnCompressedLexicon.GetPronunciations(
bstrWord As String,
[LangId As Long],
[TypeFlags As SpeechLexiconType]
) As ISpeechLexiconPronunciations
Parameters
- bstrWord
- The target lexicon word.
- LangId
- [Optional] The language ID.
- TypeFlags
- [Optional] A SpeechLexiconType constant. If Flags is SLTUser, only user lexicon words are returned; if Flags is SLTApp, only application lexicon words are returned.
Return Value
An ISpeechLexiconPronunciations object, which is a collection of one or more ISpeechLexiconPronunciation objects.