


Multi-Language Programming Example
unsigned long int UShandle;
MMRESULT result;
LPTTS_HANDLE_T phTTS;
UShandle = TextToSpeechStartLang(
if (UShandle & TTS_LANG_ERROR) {
printf(
exit(1);
}
if (TextToSpeechSelectLang(NULL, UShandle) == FALSE) {
printf(
TextToSpeechCloseLang(
exit(1);
}
result = TextToSpeechStartup(hWnd, &phTTS, WAVE_MAPPER,
REPORT_OPEN_ERROR);
if (result != MMSYSERR_NOERROR) {
printf(
TextToSpeechCloseLang(
exit(1);
}
TextToSpeechShutdown(phTTS);
TextToSpeechCloseLang(
printf(
return;
}
Related Topics