代码之家  ›  专栏  ›  技术社区  ›  Falco

System.Speech与Microsoft.Speech的比较

  •  0
  • Falco  · 技术社区  · 6 年前

    我在学习语音识别。我在用语音系统

    这是代码:

    var currentCulture = (from r in SpeechRecognitionEngine.InstalledRecognizers()
                                  where r.Culture.Equals(Thread.CurrentThread.CurrentCulture)
                                  select r.Culture).FirstOrDefault();
    
            recognizer = new SpeechRecognitionEngine(currentCulture);
    

    我得到的currentCulture等于null,因为在调试中我得到SpeechRecognitionEngine.InstalledRecognizers()。Count等于0。

    SpeechRecognitionEngine.InstalledRecognizers returns No recognizer installed

    他说他用Microsoft.Speech而不是System.Speech解决了这个问题。

    已尝试Nuget包管理器搜索Microsoft.Speech,但未找到它。

    我在谷歌上找到了安装Microsoft的MSI软件包。请在此处发言: https://www.microsoft.com/en-us/download/details.aspx?id=27225

    现在我的怀疑是:

    1. System.Speech与Microsoft.Speech之比较
    2. 如何安装系统识别器。语音,如果它更适合。
    3. 如何使用Microsoft.Speech,如果它更适合,那么使用的代码可能是

    不一样。

    1 回复  |  直到 6 年前
        1
  •  2
  •   Michael Levy    6 年前

    What is the difference between System.Speech.Recognition and Microsoft.Speech.Recognition?

    从Vista开始的桌面窗口版本附带了实现System.Speech的识别器。这些是“桌面”识别器。它们可以针对特定的演讲者进行训练,支持比电话更高质量的音频,并提供听写语法。

    语音是一个类似但不同的API,它提供了“服务器”识别特性。这是一个单独的下载。请参阅“Microsoft语音平台- https://www.microsoft.com/en-us/download/details.aspx?id=27225