none
请问windows phone store app(8.1)支持中文语音识别吗? RRS feed

  • 问题

  • 本人亲测英文是没有问题的

    var topUserLanguage = Windows.System.UserProfile.GlobalizationPreferences.Languages[0];
                var la = new Windows.Globalization.Language("en-US");
                try
                {
                    this.speechRecognizer = new SpeechRecognizer(la);
                }
                catch (Exception fuckasd)
                {
                    System.Diagnostics.Debug.WriteLine("发生错误了" + fuckasd.Message);
                }
                await speechRecognizer.CompileConstraintsAsync();
                string resultttt = string.Empty;
                try
                {
                    SpeechRecognitionResult speechRecognitionResult = await this.speechRecognizer.RecognizeWithUIAsync();
                    resultttt = speechRecognitionResult.Text;
                }
                catch (Exception ex)
                {
                    System.Diagnostics.Debug.WriteLine("发生错误" + ex.Message);
                }
    
                MessageDialog ms = new MessageDialog(resultttt, "RESULt");
                await ms.ShowAsync();

    而中文却不行 报错,求大神解决。

    2014年5月20日 11:46

全部回复