I am having problems locating any code or examples of how to do voice activated recording using either Winmm, MCI or DirectX. I want to take the audio from the microphone and when the proggy senses audio, it starts a wav off recording it. Then when it falls silent, it stops recordings and closes the file.
I know there are programs out there that can do this, like Recall etc which are cool - but to do it in VB would rock.
The speed of the language and the code that you are using counts here. If you are using unoptimized code and a (well, slower than C) language like VB, then you wont get the first second when doing voice activated things. I recommend having you say something like "on" and then when it converts it to text, start recording. But give a sound like Ding-Dong to show when it starts. When you are done, you should wait 4 seconds and then when it gets 4 seconds of near silence then cut off the end four seconds and save it to a wav.
No, sorry, i'm not sure what calls to use or whatever, but I hope that I have helped.
Cheers
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
(Just a heads-up)
Many thanks for that Sastraxi - I totally agree that I may well be looking at the wrong dev env for this task, but it was to support an existing vb6 app you see. I am sure you can do it but how is anyones guess. Have scoured the net but to no avail - shame really.
Great thanx for that - one problem though. You code came thru without CRLF and is one large block. I am having trouble deciphering end of lines as you have (gratefully) placed comments throughout - could you mail me another version direct at [email protected] - if thats not asking too much?