Loopo
Loopo

Reputation: 2195

VBA speech recognition /audio input / voice command

Speech recognition may be too grand a term for this problem.

I want my VBA program to wait for the user to say something like "next" or "continue" before it carries on processing.

This is the equivalent of the traditional "Press any key to continue" loop.

This should be fairly simple. All the examples I have found do complicated things like defining lexica and registering callback functions for recognition events. All very nice, but not necessary in my case.

Maybe I can/should use some other (audio) library instead of Speechlib (Microsoft Speech Object Library)

Thanks for any advice.

Upvotes: 0

Views: 2285

Answers (2)

Eric Brown
Eric Brown

Reputation: 13942

There's no drop-dead simple way to do speech recognition. You have to define a grammar (so the SR engine knows what to listen for) and a recognition handler (so the SR engine can tell you when it's heard something).

Upvotes: 0

SQLMenace
SQLMenace

Reputation: 135081

I think this is a bad idea

So what would happen if I step away and I had the TV or radio on and someone said Next

That would be pretty funny I think...or not

Upvotes: 0

Related Questions