Browse
 
Tools
Rss Categories

LVSpeechPort::GetPhoneticPronunciationCount

Reference Number: AA-00789 Views: 2383 0 Rating/ Voters

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

Function

  • static int GetPhoneticPronunciationCount(const char* words, const char* lang)

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 occurred while processing the request.

Remarks

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.

See Also