How get voice-key event in VB6?
How can I get a voice key function into a VB6 application?
I want sounds, picked up by a microphone plugged into the computer's audiocard mic input, to trigger an event procedure in VB6.
I don't need anything fancy like voice or word recognition, just that when incoming sounds get above some audio level it instantly triggers an event procedure that I can use for reading timer etc.
How can that be done?
Is there any control that can do that?
Any OCX?
All hints appreciated, thanks,
Sverk
Re: How get voice-key event in VB6?
Welcome to vbforums.com !
Yes, it is possible...
First things first, do you know how to record sound ?
You have to record (but NOT save) the wave sound at ALL times.
To triger an event depending on sound volume, you have to get the sound buffer as you record, and make an average of the sound of the buffer.
I don't have time to write the whole thing for you.
Check out this thread: http://www.vbforums.com/showthread.php?t=281650
See how it's recording (using DirectXSound).
Now look at the bars on the left side and right side of the application, those bars show the average that I'm talking about.
You will see that the lowder the music is, the higher the bars go.
All you have to do is to check if there is above the percentage you need, then triger the code you want to run...
Re: How get voice-key event in VB6?
Very promising, Thanks a lot!
Sverk