I am running Windows 7 Professional 64-bit with Visual Studio 2010.
I installed Microsoft Speech Platform - Runtime version v10.2 and en-US language packs.
I created a web service (web application) using Microsoft.Speech. In my test, the web service receives a string and simulates recognition based on some grammar rules.
When I run it in Visual Studio using ASP.NET Development Server, it works without problems.
Then I go to II and create a virtual directory pointing to it. When I try to call a 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 the difference is because I am running it on the same machine. Could this be a permission issue?