saiAsrGetSpeechLanguage

Retrieves the language of recognition grammar data within a session or request when the language is not specified within the data (XML document).

Prototype

DWORD saiAsrGetSpeechLanguage ( SAI_RECOGNIZER_HANDLE recogHd, SAI_SPEECH_LANGUAGE *language, SAI_SPEECH_LANGUAGE_STRING speechLanguageString )

Argument

Description

recogHd

Handle associated with a recognizer resource.

language

Pointer to the following structure:

typedef struct
{    
SAI_SPEECH_LANGUAGE             language;    
SAI_SPEECH_LANGUAGE_STRING      languageString;
}
SAI_SPEECH_LANGUAGE;

speechLanguageString

Pointer to a string that specifies the language to use. For a list of valid strings, refer to SAI_SPEECH_LANGUAGE.


Return values

Return value

Description

SUCCESS

 

SAIERR_INVALID_PARAMETER

One of the specified arguments is invalid.

SAIERR_UNSUPPORTED_SPEECH_PARAMETER

Recognizer engine does not support the specified parameter.


See also

saiAsrSetSpeechLanguage