开发者

VBA speech recognition /audio input / voice command

开发者 https://www.devze.com 2023-01-01 10:42 出处:网络
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.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号