# TextToSpeechSetLanguage (not supported)

Warning

The TextToSpeechSetLanguage call is not supported for DECtalk Software version 4.6. Use of this call causes unpredictable operation and application linking errors.

For multi-language programming, see TextToSpeechStartLang to check for an installed language and to load that language into the DECtalk Multi-Language (ML) engine, and see TextToSpeechSelectLang to select a loaded language for a program thread.

The TextToSpeechSetLanguage call selects a language for the text-to-speech system to use as the default language.

Syntax | MMRESULT TextToSpeechSetLanguage | (LPTTS_HANDLE_T phTTS, LANGUAGE_T Language)
Parameters | LPTTS_HANDLE_T phTTS | Specifies a text-to-speech handle.
| LANGUAGE_T Language | Specifies a language. Refer to the ttsapi.h file for a list of valid languages, e.g. TTS_AMERICAN_ENGLISH.
Return Value | This call returns a value of type MMRESULT. The return value is zero if the call is successful. The return value is one of the following constants:
Constant | Description
MMSYSERR_NOERROR | Normal successful completion (zero).
MMSYSERR_INVALPARAM | An invalid parameter was passed.
MMSYSERR_INVALHANDLE | The text-to-speech handle was invalid.
See Also | TextToSpeechGetLanguage