Results 1 to 3 of 3

Thread: How get voice-key event in VB6?

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2006
    Location
    Sweden
    Posts
    5

    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

  2. #2
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,802

    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...

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2006
    Location
    Sweden
    Posts
    5

    Re: How get voice-key event in VB6?

    Very promising, Thanks a lot!
    Sverk

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