Speech recognition supported languages on WP8

ε祈祈猫儿з 提交于 2020-01-14 05:03:23

问题


I tried Speech API example for Windows Phone 8. It is working good with English language, but when I switch emulator's language setting to Russian language, speech recognition broke.

On this code:

// Perform speech recognition.  
this.recoOperation = recognizer.RecognizeAsync();
var recoResult = await this.recoOperation;

It throws Exception:

SPERR_WINRT_UNSUPPORTED_LANG 0x800455BC The requested language is not supported.

So, It is means what Russian language is not supported with Speech Recognitiona API or I should change some additional settings to make it work?

Also I get this error for ja-JP and zh-HK languages.

Where can I find information about really supported languages?

Thanks.


回答1:


I've tried the same. I asked through Microsoft contacts. They say dictation grammar for remote recognition is not supported for any languages that you get this error for. You have to go with local recognition defined by Lists or SRGS grammar files for languages like Japanese, Chinese, Russian, etc.

Even if the language is installed, some languages will not support dictation remote recognition.

IReadOnlyCollection<SpeechRecognizerInformation> voices = InstalledSpeechRecognizers.All;
foreach (SpeechRecognizerInformation s in voices)
{
       Debug.WriteLine(s.Language);
}

The list of installed languages are:

en-US
de-DE
zh-TW
fr-FR
it-IT
ja-JP
pl-PL
pt-BR
ru-RU
en-IN
zh-CN
en-GB
es-MX
zh-HK
es-ES


来源:https://stackoverflow.com/questions/13264903/speech-recognition-supported-languages-on-wp8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!