Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

System.PlatformNotSupportedException: Speech Recognition is not available on this system. SAPI and Speech Recognition engines cannot be found

I am running Windows 7 Professional 64-bit with visual Studio 2010.

I have installed the Microsoft Speech Platform - Server Runtime v10.2 and the en-US language packages.

I created a Web Service (Web Application) using Microsoft.Speech. In my test the Web Service receives a string and simulates the recognition based on some grammar rules.

When I run it in Visual Studio using the ASP.NET Development Server, it works correctly without problems.

I then go to IIs and create a Virtual directory pointing to it. When I try to call the web method I get this error:

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

I don't know what is the difference since I am running it in the same machine. Could it be a permissions issue?

like image 261
Eliseo Avatar asked Jan 02 '26 07:01

Eliseo


1 Answers

I got some feedback from a Microsoft Forum.

When using the Microsoft Speech Platform - Server Runtime it will run properly in a development client OS like Windows 7, but to run it in a production setting it needs to be in a Windows Server OS.

I tested the same Web Service in Windows Server 2008 and it worked.

like image 190
Eliseo Avatar answered Jan 03 '26 22:01

Eliseo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!