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?
All hints appreciated, thanks,
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.
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...