1
我真的不知道這是Windows問題還是C#問題,但我試圖用C#和語音識別來解決問題,我的程序會理解簡單的語音命令,但每次運行I收到一條錯誤消息: 「類型‘System.PlatformNotSupportedException’的第一次機會異常出現在System.Speech.dll 其他信息:二是吉恩herkennergeïnstalleerd」C#中的語音識別未安裝
我使用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);
也許你應該先爲英語添加一個語言包? http://windows.microsoft.com/nl-nl/windows/language-packs#lptabs=win7爲了方便我鏈接到荷蘭語版本的語言包... [額外信息](http://superuser.com/問題/ 317374/do-i-get-additional-speech-recognition-engines-after-installation-windows-7-langua) – rene
我去了網站,但我無法下載英文語言包..它說「ontdek鋤頭「(」發現如何「),而不是下載..我認爲我不能改變我的語言,因爲我沒有一個終極的Windows版本,但它並不意味着沒有終極Windows版本的任何人都可以運行我的程序?或者使用英文語音識別是他的C#項目? – dieterweireldt
它看起來像。這種語言似乎被用於家庭和高級版本。奇怪。 – rene