Locking the computer disables speech recognition on windows 8.1

1.3k views Asked by At

I work with SpeechRecognitionEngine from the namespace System.Speech in inproc-mode for doing some automation work. The speech recognition is started via RecognizeAsync.

It works fine, however, when the computer gets locked, speech recognition stops. As soon as the computer gets unlocked, the recognition is active again. While this is probably a meaningful behavior for most applications, for mine, it is an issue. I have searched the web, but not found a solution to disable this behaviour.

How can I parameterize the SpeechRecognition not to stop when the computer is locked?

(Please note: The app is a conventional Windows WPF application, not a Windows Store App)

2

There are 2 answers

1
David d C e Freitas On

Some ideas which might be too crazy to work to hopefully trigger some ideas that might work:

  • Using ControlChannelTrigger to keep pinging your app to wake up and try recognizing speech at intervals? This listener allows your app to process network data in the background.
  • Try out Google Chrome's hotword (OK, Google) extension and see if it works behind the lock screen. If they can do it, then it's possible.
  • Do you have to lock the screen, isn't it possible to not have it locked?

Some references:

Similar questions:

1
bahrep On

Do you have "Enable voice activation" option enabled in Windows?

It looks like the behavior you describe is expected when "Enable voice activation" option is disabled in Control Panel | Speech recognition. Though, it can be unrelated to locked Windows.

See "Setting speech options":

Enable voice activation
Sets Speech Recognition to start in sleep mode and allows Speech Recognition to enter sleep mode when you say "stop listening."

On the other hand, I don't think that using Speech Recognition with locked device is valid operation (security reasons). Unless you are going to spell your password instead of typing it. :)