Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SpeechRecognitionEngine in a Windows Service doesn't trigger event

16 views
Skip to first unread message

johnnynine

unread,
Aug 30, 2009, 12:59:01 AM8/30/09
to
Is it possible to use an instance of the SpeechRecognitionEngine class in a
Windows Service?

I have it running this way, but none of the speech engine events are
triggered (such as SpeechRecognized or AudioStateChanged).

When I run the same source code in a windows desktop application it works
fine and all the events get triggered.

If it is possible to use it in a service can you please point out what
special steps need to be taken for it to work?

Thanks,
Johnny

Adrianus

unread,
Sep 3, 2009, 12:49:37 PM9/3/09
to
Hi.

Have you tried configuring your windows service (using services.msc)
to interact with desktop?

Also you can try setup an account with the necessary privileges to run
SAPI.

Greetings.

On Aug 29, 11:59 pm, johnnynine <johnnyn...@discussions.microsoft.com>
wrote:

johnnynine

unread,
Sep 4, 2009, 12:46:12 PM9/4/09
to
I will be using one of the built in accounts so setting the account to
interact with the desktop is not an option for me.

Johnny

Adrianus

unread,
Sep 5, 2009, 11:52:16 AM9/5/09
to
well, you dont setup the account to interact with desktop. You setup
your serivice to interact with desktop so it can behave like a windows
forms application.

Greetings

On Sep 4, 12:46 pm, johnnynine <johnnyn...@discussions.microsoft.com>
wrote:

> > > Thanks,u
> > > Johnny

johnnynine

unread,
Sep 5, 2009, 7:32:02 PM9/5/09
to
From my experience, selecting the "Allow service to interact with desktop"
checkbox will grant the user account that the windows service runs under the
Interact with Desktop privilege if it does not already have it.

In any case, does anyone have any alternate ideas?

0 new messages