Results 1 to 5 of 5

Thread: Voice Activated App

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2000
    Posts
    5

    Unhappy

    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

  2. #2
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    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)

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2000
    Posts
    5
    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

  4. #4
    Fanatic Member gwdash's Avatar
    Join Date
    Aug 2000
    Location
    Minnesota
    Posts
    666
    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
    Attached Files Attached Files
    GWDASH
    [b]VB6, Perl, ASP, HTML, JavaScript, VBScript, SQL, C, C++, Linux , Java, PHP, MySQL, XML[b]

  5. #5

    Thread Starter
    New Member
    Join Date
    May 2000
    Posts
    5

    Cool follow up to code

    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?

    many thanks - very excited to see it

    j121

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width