Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7871215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T01:50:24+00:00 2026-06-03T01:50:24+00:00

So I have a windows service with speech recognition implemented using the system.speech recognition

  • 0

So I have a windows service with speech recognition implemented using the system.speech recognition engine. My speech recognition code runs fine when I start the service but no events for speech recognized fires. The strange thing is, if I run the exact same code, but in a console or WPF app instead, the event firing for speech recognition works just fine.
I have already attached a debugger to my service process to check what was going on behind the scenes. It seems as though the speech recognition engine properly loads the grammars, sets its mode to listen continuously, and properly sets up the speech recognized event. No exceptions are thrown so I am not too sure what is wrong here. Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T01:50:25+00:00Added an answer on June 3, 2026 at 1:50 am

    Are you using the microphone or processing a WAV file? I’m not sure how the audio plumbing will work in a service if you are trying to use the default audio device. If you are trying to convert from audio files or a stream, make sure you are using an InProc recognizer.

    If you are creating a server app, you probably should consider using the Microsoft.Speech API and the server recongizers. See What is the difference between System.Speech.Recognition and Microsoft.Speech.Recognition? and the Microsoft Speech Platform SDK – http://www.microsoft.com/en-us/download/details.aspx?id=27226

    If you are trying to do continuous recognition without your app in the foreground, I believe the shared recognizer may be able to support your need. The Microsoft desktop recognizer that ships in Windows 7 and Vista can work in two modes: inproc or shared. Shared recognizers are useful on the desktop where voice commands are used to control any open applications. In System.Speech you can use SpeechRecognizer to access the shared desktop recognizer or SpeechRecognitionEngine to have a dedicated inproc recognizer for your application. You might be able to use the shared recognizer to provide continuous recognition to your application even when your app is not in the foreground.

    There is a very good article that was published a few years ago at http://msdn.microsoft.com/en-us/magazine/cc163663.aspx. It is probably the best introductory article I’ve found so far. It says:

    …recognition engine can be instantiated in another process called
    SAPISVR.EXE. This provides a shared recognition engine that can be
    used simultaneously by multiple applications. This design has a number
    of benefits. First, recognizers generally require considerably more
    run-time resources than synthesizers, and sharing a recognizer is an
    effective way to reduce the overhead. Second, the shared recognizer is
    also used by the built-in speech functionality of Windows Vista.
    Therefore, apps that use the shared recognizer can benefit from the
    system’s microphone and feedback UI. There’s no additional code to
    write, and no new UI for the user to learn.New to SAPI 5.3

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a windows service that runs various system monitoring operations. However, when running
I have a windows service and use nlog for logging. Everything works fine when
I have a Windows service that runs as a logged-in user (local admin). During
i have a windows service that runs every 10 seconds to execute the read
I have a windows service. If I start it from the debugger I want
I have windows service that's select some records. And it works like this: using
I have have running windows service that is using it's app.config for getting some
I have a Windows service that runs implementations of a framework across multiple threads.
I have a windows service running as local system, which will search for some
I have a Windows Service application (developed in C++) running under Local System account.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.