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) librar开发者_如何学运维y instead of Speechlib (Microsoft Speech Object Library)
Thanks for any advice.
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
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).
精彩评论