Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/292.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# System.PlatformNotSupportedException:语音识别在此系统上不可用。找不到SAPI和语音识别引擎_C#_Web Services_Web Applications_Iis 7_Speech Recognition - Fatal编程技术网

C# System.PlatformNotSupportedException:语音识别在此系统上不可用。找不到SAPI和语音识别引擎

C# System.PlatformNotSupportedException:语音识别在此系统上不可用。找不到SAPI和语音识别引擎,c#,web-services,web-applications,iis-7,speech-recognition,C#,Web Services,Web Applications,Iis 7,Speech Recognition,我正在使用visual Studio 2010运行64位Windows 7 Professional 我已经安装了MicrosoftSpeechPlatform-Server运行时v10.2和en-US语言包 我使用Microsoft.Speech创建了一个Web服务(Web应用程序)。在我的测试中,Web服务接收一个字符串,并根据一些语法规则模拟识别 当我在Visual Studio中使用ASP.NET开发服务器运行它时,它工作正常,没有问题 然后我转到IIs并创建一个指向它的虚拟目录。当我尝

我正在使用visual Studio 2010运行64位Windows 7 Professional

我已经安装了MicrosoftSpeechPlatform-Server运行时v10.2和en-US语言包

我使用Microsoft.Speech创建了一个Web服务(Web应用程序)。在我的测试中,Web服务接收一个字符串,并根据一些语法规则模拟识别

当我在Visual Studio中使用ASP.NET开发服务器运行它时,它工作正常,没有问题

然后我转到IIs并创建一个指向它的虚拟目录。当我尝试调用web方法时,出现以下错误:

System.PlatformNotSupportedException: Speech Recognition is not available on this system. SAPI and Speech Recognition engines cannot be found.
   at Microsoft.Speech.Internal.SapiInterop.SapiRecognizer..ctor(RecognizerType type)
   at Microsoft.Speech.Recognition.SpeechRecognitionEngine.Initialize(RecognizerInfo recognizerInfo)
   at Microsoft.Speech.Recognition.SpeechRecognitionEngine..ctor(CultureInfo culture)
   at VoiceCommand.SimulateVoiceCommand(String command) in c:\Development\Visual Studio 2010\VoiceCommandWebService\VoiceCommandWS\App_Code\VoiceCommand.cs:line 35

我不知道有什么区别,因为我在同一台机器上运行它。这可能是权限问题吗?

我从微软论坛得到了一些反馈

使用Microsoft Speech Platform-Server运行时时,它将在开发客户端操作系统(如Windows 7)中正常运行,但要在生产环境中运行它,需要在Windows Server操作系统中运行


我在Windows Server 2008中测试了同一个Web服务,它成功了。

我在我的机器上看不到这种行为。我正在使用visual Studio 2010运行32位Windows 7 Professional。我已经安装了MicrosoftSpeechPlatform-Server运行时v10.2和en-US语言包。我在ASP.NET下的应用程序在开发环境中以及在IIS下运行时运行良好。我无法解释为什么我们看到不同的结果。从我们肤浅的描述中,我看到唯一的区别是32位操作系统和64位操作系统。我不确定32/64的差异是否会影响它,只是在这里添加一些。我重新配置了本地IIS,使应用程序池以32位的速度运行,web服务开始工作(在快速更改安全问题后)。