I have been trying to get speech recognition working from a Windows Service without much luck. I am able to get it working just fine from a Console, winForms or WPF application, but when I try to put the same code into a Service. I based my sample console app on the example here: http://msdn.microsoft.com/en-us/library/ms554584.aspx Then I literally copied the same code to the service and it fails. I did read somewhere that the account that the Services run in don't have a access to a default audio device, so the problem lies with this line:
recognizer.SetInputToDefaultAudioDevice();
Is there some way I can get speech recognition from a microphone working from within a service?