# saiTtsSetSpeechLanguage

Specifies the default language used when synthesizing speech.

#### Prototype

DWORD saiTtsSetSpeechLanguage ( SAI_SYNTHESIZER_HANDLE synth H d, SAI_SPEECH_LANGUAGE language )

Argument | Description
synthHd | Handle associated with a synthesizer resource.
language | SAI_SPEECH_LANGUAGE structure: typedef struct { SAI_SPEECH_LANGUAGE language; SAI_SPEECH_LANGUAGE_STRING languageString; } SAI_SPEECH_LANGUAGE; For more information, 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 | Speech engine does not support the specified parameter.

#### See also

saiTtsGetSpeechLanguage