TextToSpeechEnumLangs

The TextToSpeechEnumLangs call retrieves information about what languages are available.

 

Syntax

DWORD TextToSpeechEnumLangs

(LPLANG_ENUM *langs);

 

Parameters

LPLANG_ENUM *langs

Specifies a LANG_ENUM struct structure.

Return Value

DWORD

Returns the size of the struct on success, and returns 0 on error. No further error information is available at this time.

Comments

TextToSpeechEnumLangs returns the default language in the registry as the first language of the array of LANG_ENTRY returned by langs.

Example

if(TextToSpeechEnumLangs (&languageINFO) == 0)

{

 MessageBox(NULL, "Unable to allocate Memory","Error",MB_OK);

 return(-1);

}

if(languageINFO->MultiLang==FALSE)

 do some none multi lang stuff;

else

 for(i=0;i<languageINFO->Languages;i++)//go thru all languages…

{

  languageINFO->Entries[i].lang_code; //short language name

  languageINFO->Entries[i].lang_name //long language name

}

 

See Also

btn_mini.gif TextToSpeechCloseLang

btn_mini.gif TextToSpeechSelectLang

btn_mini.gif TextToSpeechStartLang