C#语音识别未安装

时间:2013-10-20 09:32:06

标签: c# windows speech-recognition

我真的不知道这是一个Windows问题还是C#问题,但我试图搞乱c#和语音识别,我的程序会理解简单的语音命令,但每次我运行时都会收到错误说: “在System.Speech.dll中发生了'System.PlatformNotSupportedException'类型的第一次机会异常 附加信息:Er是geenherkennergeïnstalleerd。 “

我正在使用荷兰语版本的Windows 7而我没有Windows语音识别(我在“易于访问”时检查过)

但是如何将我的c#语音识别器设置为英语?我是否需要安装任何东西,或者我的程序无法工作,因为我运行荷兰语版本?

 SpeechRecognizer sr = new SpeechRecognizer();
        this.WindowState = FormWindowState.Maximized;
        this.FormBorderStyle = FormBorderStyle.None;
        this.TopMost = true;
        this.Visible = false;

        Choices radios = new Choices();
        radios.Add(new string[] { "stubru", "mnm", "joe" });

        GrammarBuilder gb = new GrammarBuilder();
        gb.Append(radios);

        // Create the Grammar instance.
        Grammar g = new Grammar(gb);

        sr.LoadGrammar(g);
        sr.SpeechRecognized += new EventHandler<SpeechRecognizedEventArgs>(sr_SpeechRecognized);

1 个答案:

答案 0 :(得分:0)

好吧,如果您从Dictus加载荷兰语语音识别器,您可以指定一个荷兰语语言环境,并且您已关闭&amp;运行。 (检查网页看起来相当昂贵,这很奇怪,因为我和他们一起工作过,并且认为他们有大量的政府资助。)购买Windows 7可能更便宜终极升级。