Returns a positive number if the specified PhonemeString contains no invalid or unsupported SAMPA format phonemes in the context of the specified language
See Remarks, below, for more details.
- int LV_SRE_IsValidSampaPhonemeString(const char * PhonemeString, const char * Language)
The input string in SAMPA format that needs to be verified
The language identifier for the verification, so that the correct phonetic alphabet context is used. This should be one of the ASR languages supported by LumenVox as shown in the ASR Phoneme Tables. Examples of these strings are:
No errors; the string contains no invalid SAMPA phonemes in the context of the specified language.
The request was processed successfully and the PhonemeString was found to contain at least one unsupported or invalid SAMPA phoneme in the context of the specified language.
This will be returned if either PhonemeString or Language is NULL
The ASR did not respond within the expected period
An exception occurred while processing the request.
Added in LumenVox version 11.2, LV_SRE_IsValidSampaPhonemeString forms part of a number of changes implemented for improved custom lexicon support. These changes included the option to use either SAMPA or LumenVox native format (similar to CMU or ARPABet format) when working with custom lexicons.