LV_SRE_CheckWordsInDictionary

Checks if the specified words are in the Engine's internal pronunciation dictionary for a given langauge.

Function

Return Values

Zero (0) or greater indicates success; all words are in the dictionary.

A negative result indicates a specific error:

-38 LV_INVALID_DICTIONARY_LANGUAGE - The specified language is not valid.

-39 LV_WORDS_NOT_IN_DICTIONARY - One or more of the words is not in the dictionary.

Remarks

This function is useful for determining whether you should provide a phonetic spelling for a grammar item. If a grammar word is not in the Engine's dictionary, it falls back to its internal phonetic speller to try and best determine how a word should be pronounced. Often, especially in dealing with words not native to the specified language (e.g. foreign names), it is helpful to supply phonetic spellings.

You may also use LV_SRE_GetPhoneticPronunciation to find out how the Engine believes a word is pronounced.

See Also

© 2012 LumenVox LLC. All rights reserved.