Locking the computer disables speech recognition on windows 8.1
Asked Answered
K

2

7

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)

Kolo answered 4/12, 2013 at 9:8 Comment(1)
Why the close-request? It’s perfectly about coding. Is it because the word “configure”? Should I have better written “parameterize”? I’m not native english speaking and therefore please forgive me the wrongly used word. But I think, this question makes perfectly sense for SO. Changed the word.Kolo
C
2

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:

Convoluted answered 11/12, 2013 at 1:8 Comment(1)
The app does not sleep, it does other tasks without problems (under the lock screen), it's only the speech recognition which stops to work. By the way, it's a conventional windows app, not a windows store app). But thanks anyway.Kolo
N
2

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. :)

Nightcap answered 11/12, 2013 at 14:0 Comment(1)
Sadly, this does not solve the Problem. But thank you for your post.Kolo

© 2022 - 2024 — McMap. All rights reserved.