Sets the language of the recognition grammar data within a session or request when the language is not specified within the data (XML document).
DWORD saiAsrSetSpeechLanguage ( SAI_RECOGNIZER_HANDLE recogHd, SAI_SPEECH_LANGUAGE language, SAI_SPEECH_LANGUAGE_STRING speechLanguageString )
|
Argument |
Description |
|
recogHd |
Handle associated with a recognizer resource. |
|
language |
Structure: typedef struct |
|
speechLanguageString |
String that specifies the language to use. For a list of valid strings, refer to SAI_SPEECH_LANGUAGE. |
|
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. |