Returns the number of different pronunciations the ASR Engine has for a given list of space separated words in a given language.
- static int GetPhoneticPronunciationCount(const char* words, const char* lang)
A list of one or more words, separated by spaces.
The language whose dictionary should be checked. This needs to be a language identifier string (Ex: "AmericanEnglish", "ColombianSpanish") that corresponds to an acoustic model. See Language Identifier for the list of supported languages.
The actual number of pronunciations returned by the ASR engine.
The operation failed because one or both the inputs were NULLs.
The sending of the request to the ASR server failed.
Either the requested language is not available or lang is not a valid language identifier.
The operation failed because no ASR server was available.
An exception occurred while processing the request.
This function is usually used in conjunction with GetPhoneticPronunciation. After getting the pronunciation count, you can get the actual pronunciation by using its index number.