Home > other >  what is the language code for Turkish in SAPI
what is the language code for Turkish in SAPI

Time:11-15

I'm working on a desktop application on Windows using Windows API. Application sends notifications and notifications must be spoken in Turkish language. What's the code for Turkish language that required on Language parameter in ISpVoice::Speak function?

if(FAILED(voice->Speak((L"<sapi><voice required=\"Language=409\">" alertBody L"</voice></sapi>").c_str(), SPF_DEFAULT, NULL))) {
   throw Error::Exception(L"Hatırlatma seslendirmesi yapılamadı!", L"Randevu Hatırlatma Hatası");
                } 

Thanks in advance.

CodePudding user response:

It's 41f.

if(FAILED(voice->Speak((L"<sapi><voice required=\"Language=41f\">" alertBody L"</voice></sapi>").c_str(), SPF_DEFAULT, NULL))) {
   // ...
} 

You can find it in the documentation https://documentation.help/Microsoft-Speech-Platform-SDK-11/c494fcf6-5053-42ad-9528-9948c2d93855.htm

  • Related