Browse Ask a Question
 
Tools Add
Rss Categories

LV_SRE_GetPhoneticPronunciationCount

Reference Number: AA-00702 Views: 513 0 Rating/ Voters

Returns the number of different pronunciations the ASR Engine has for a given list of space separated words in a specified language.

Function

  • int LV_SRE_GetPhoneticPronunciationCount(const char *Words, const char *Language)

Parameters

Words

A list of one or more words, separated by spaces.

Language

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.

Return Values

Non-negative number

The actual number of pronunciations returned by the ASR engine.

LV_FAILURE

The operation failed because one of the supplied parameters was a NULL string.

LV_TIME_OUT

The sending of the request to the ASR server failed due to a timeout.

LV_INVALID_DICTIONARY_LANGUAGE

Either the requested language is not available or Language is not a valid language identifier.

LV_NO_SERVER_AVAILABLE

The operation failed because no ASR server was available.

LV_EXCEPTION

An exception occurred while processing the request.

Remarks

This function is usually used in conjunction with LV_SRE_GetPhoneticPronunciation. After getting the pronunciation count, you can get the actual pronunciation by using its index number.

See Also

Rss Comments
  • There are no comments for this article.
Info Add Comment
Nickname: Your Email: Subject: Comment:
Enter the code below:
Info Ask a Question