# TextToSpeechStartLang

The TextToSpeechStartLang call checks for an installed language and loads it into the DECtalk Multi-Language (ML) engine.

Syntax | unsigned int TextToSpeechStartLang | (char *lang)
Parameters | char *lang | Language being selected and passed as a null-terminated string containing the two character language ID.
Return Value | unsigned int | Returns a handle to the loaded language on success or sets the bit TTS_LANG_ERROR on failure. If the TTS_LANG_ERROR bit is set, the return can equal one of two values: TTS_NOT_SUPPORTED for the application is not running DECtalk ML and TTS_NOT_AVAILABLE for the language selected is not installed.
Comments | This call must be called before a language may be selected and opened in a multi-language application.
See Also | TextToSpeechCloseLang TextToSpeechEnumLangs TextToSpeechSelectLang