Click to See Complete Forum and Search --> : Voice Activated App
jacque121
Feb 10th, 2001, 10:27 AM
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.
Many thanks peeps
J121
Sastraxi
Feb 10th, 2001, 11:42 AM
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
jacque121
Feb 10th, 2001, 06:01 PM
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.
It cannot be that hard - any takers out there?
thanx again for your help
j121
gwdash
Feb 10th, 2001, 08:13 PM
This code is to long to post(10,000 + charecters), but also my vb is down, so all i can do is attach it. it's from the API-Guide
jacque121
Feb 11th, 2001, 03:18 PM
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 jacque121@hotmail.com - if thats not asking too much?
many thanks - very excited to see it
j121
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.