SpUnCompressedLexicon GetPronunciations method (SAPI 5.3)
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
- The target lexicon word.
- [Optional] The language ID.
- [Optional] A SpeechLexiconType constant. If Flags is SLTUser, only user lexicon words are returned; if Flags is SLTApp, only application lexicon words are returned.
An ISpeechLexiconPronunciations object, which is a collection of one or more ISpeechLexiconPronunciation objects.