LV_SRE_GetPhoneticPronunciationCount

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

Function

Parameters

words

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

lang

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 or both the inputs were NULLs.

LV_TIME_OUT

The sending of the request to the ASR server failed.

LV_INVALID_DICTIONARY_LANGUAGE

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

LV_NO_SERVER_AVAILABLE

The operation failed because no ASR server was available.

LV_EXCEPTION

An exception occured 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

© 2012 LumenVox LLC. All rights reserved.