PlatformNotSupportedException Using .NET Speech Recognition

后端 未结 3 620
[愿得一人]
[愿得一人] 2021-01-21 10:15

So I\'m trying voice recognition for C#, I\'m using System.Speech.Recognition, and, I was searching around on the internet, trying out several pieces of code for some basic spee

3条回答
  •  渐次进展
    2021-01-21 10:46

    The Speech Platform Runtime 11 and the Speech Platform SDK 11 do not include Runtime Languages for speech recognition or for speech synthesis (TTS or text-to-speech). You must install them separately. A Runtime Language includes the language model, acoustic model, and other data necessary to provision a speech engine to perform speech recognition or TTS in a particular language. There are separate Runtime Languages for speech recognition or speech synthesis. The version of Runtime Languages that you download (for example, version 11.0) must match the version of the Speech Platform Runtime that you have installed. You can download Runtime Languages using this link.

    From http://msdn.microsoft.com/en-us/library/hh362873.aspx.

    I think you're using the version that shipped with .NET, but there have been several revisions released out of band since then. Microsoft Speech Services v11 is the current release as of today. If you install the SDK, add a reference, and change your namespace to Microsoft.Speech (instead of System.Speech) you should be updated.

提交回复
热议问题