Discussion:
Say "Start Listening" programmatically?
(too old to reply)
Michael
2010-03-22 15:50:58 UTC
Permalink
Hi all,

I'm the author of pyspeech, a Python wrapper library for the SAPI.
Users of the library can make their programs respond to commands, or
receive strings of dictation.

Windows 7 + Windows Vista users must first enable speech recognition
by saying "Start Listening" or by pressing Windows+Ctrl, before my
SpeechRecoGrammar will be able to receive speech events.

Is there a way in the API to start listening programmatically, so that
when my user calls my API like
speech.listenfor(["yes", "no"], some_callback_function)
the Speech Recognition system becomes active without *their* end users
having to press Windows+Control?

Thanks!
Michael
Eric Brown
2010-04-19 16:45:01 UTC
Permalink
I assume you already know about ISpRecognizer::SetRecoState, and are
wondering how to programmatically switch out of sleep mode and into listening
mode.

On Vista, it's not possible; on Windows 7, it is possible; look at
http://blogs.msdn.com/tsfaware/archive/2010/03/22/detecting-sleep-mode-in-sapi.aspx to see how to use ISpRecognizer3::SetActiveCategory.
Post by Michael
Hi all,
I'm the author of pyspeech, a Python wrapper library for the SAPI.
Users of the library can make their programs respond to commands, or
receive strings of dictation.
Windows 7 + Windows Vista users must first enable speech recognition
by saying "Start Listening" or by pressing Windows+Ctrl, before my
SpeechRecoGrammar will be able to receive speech events.
Is there a way in the API to start listening programmatically, so that
when my user calls my API like
speech.listenfor(["yes", "no"], some_callback_function)
the Speech Recognition system becomes active without *their* end users
having to press Windows+Control?
Thanks!
Michael
.
Lance
2010-04-26 23:54:01 UTC
Permalink
Further to this question, I have a Philips SpeechMike Classic - it has a
Record button. I'd like this to control the state of the shared recognizer
(e.g. Off when not recording, On when recording).

Would this be impossible on Vista?
Post by Eric Brown
I assume you already know about ISpRecognizer::SetRecoState, and are
wondering how to programmatically switch out of sleep mode and into listening
mode.
On Vista, it's not possible; on Windows 7, it is possible; look at
http://blogs.msdn.com/tsfaware/archive/2010/03/22/detecting-sleep-mode-in-sapi.aspx to see how to use ISpRecognizer3::SetActiveCategory.
Post by Michael
Hi all,
I'm the author of pyspeech, a Python wrapper library for the SAPI.
Users of the library can make their programs respond to commands, or
receive strings of dictation.
Windows 7 + Windows Vista users must first enable speech recognition
by saying "Start Listening" or by pressing Windows+Ctrl, before my
SpeechRecoGrammar will be able to receive speech events.
Is there a way in the API to start listening programmatically, so that
when my user calls my API like
speech.listenfor(["yes", "no"], some_callback_function)
the Speech Recognition system becomes active without *their* end users
having to press Windows+Control?
Thanks!
Michael
.
Continue reading on narkive:
Loading...