Roger's woze

August 17, 2010

open source audio sniffer/grabber for windows 7/vista

Filed under: Uncategorized — rogerdpack @ 5:02 pm

This is a directshow audio filter source that uses the loopback capture of windows vista+ to capture live audio.
I.e. it’s an open source (free) competitor to virtual audio cable, basically

virtual-audio-capture-grabber-device

http://github.com/rdp/virtual-audio-output-sniffer was the old url

Basically with windows XP, you could record “what you hear” by selecting stereo mix from your “recording properties” and voila, it would record (note: this option is only available if your sound card supports it, so not all XP users could do this).

With windows Vista/7, this is also an option–go to control panels -> manage audio devices -> Playback tab, right click and check the various “show hidden/disabled devices” and then select “stereo mix” again.

http://www.downloadsquad.com/2007/01/15/how-to-enable-wave-out-recording-in-vista/

 

If that works then you don’t need my little program here, you are good to go.

Unfortunately this is only available if your sound card drivers support it, and most for windows 7 audio drivers seem to *not* support for this.

There is an answer–WASAPI Loopback recording is available on windows vista+ allows you to do essentially the same thing [1]

but using software only.  This project attempts to create a directsound audio input device that “reads” from that source, i.e. basically allowing any directsound aware apps (ex: VLC) to be able to record what you hear.  It works, feedback is welcome.

Some other options would be (you don’t need to do these, you can just use my program though):

buy a new (or another) sound card, or buy a physical cable and connect it from your headphone jack to your linein (or mic) jack, then use that, or purchase either http://www.shiningmorning.com/VirtualAudioStreaming/index.html or “virtual audio cable” (the former looks less confusing) or http://www.e2esoft.cn/vsc/buy.asp or the like.

[1] http://blogs.msdn.com/b/matthew_van_eerde/archive/2008/12/16/sample-wasapi-loopback-capture-record-what-you-hear.aspx

10 Comments »

  1. leave a comment here if you want to see this happen (I.e. if anybody’s interested, I’ll work on it and perfect it more).
    Thanks!

    Comment by rogerdpack — August 24, 2010 @ 1:39 pm

  2. [...] have been working on another free alternative to this: http://betterlogic.com/roger/?p=3216 Comments [...]

    Pingback by how to setup your sound system to record “what you hear” « Roger's woze — August 24, 2010 @ 1:41 pm

  3. Hello, I hope you’d resume working on this project. Seems like my sound card’s wave input has some weird problems, so having a working solution for getting the Vista/7 audio capture as an audio device would be great. And I don’t exactly want to buy something that should IMO even come directly with the OS itself.

    Comment by GJ — April 10, 2011 @ 3:03 pm

  4. interestingly I received another request via github a few days ago. That makes the first two requests since I posted this 8 months ago, so I guess I’ll add it to the todo list but probably won’t get to it for awhile. If anybody else wants it to happens PLEASE POST A COMMENT so I know it will be useful for anybody.
    -r

    Comment by rogerdpack — April 11, 2011 @ 3:08 pm

  5. [...] see http://betterlogic.com/roger/2010/08/open-source-audio-sniffergrabber-for-windows-7vista/ Comments (0) [...]

    Pingback by loopback audio windows 7 « Roger's woze — May 11, 2011 @ 9:01 am

  6. all righty I have recently updated it. It’s now threaded and working! Try it out, give me feedback.
    Thanks!
    -roger-

    Comment by rogerdpack — August 5, 2011 @ 5:10 pm

  7. [...] I might have to build one eventually… and I did! http://betterlogic.com/roger/2010/08/open-source-audio-sniffergrabber-for-windows-7vista/ [...]

    Pingback by open source virtual audio cable clues/thoughts/musings « Roger's woze — August 15, 2011 @ 12:49 pm

  8. [...] driver I made for it: open-source-audio-sniffergrabber-for-windows-7vista Comments [...]

    Pingback by how to setup your sound system to record “what you hear” « Roger's woze — August 24, 2011 @ 8:56 am

  9. Excellent! Worked out of the box. Thanks so much for this outstanding work.
    Would it be technically possible to use this (or something similar) on the line-in or mic-in, too?

    Comment by Hank — January 7, 2012 @ 8:59 am

  10. with linein or mic you should be able to just “record it straight” (without any extra software) or you can [with some effort] get your mic and/or linein to “output through the speakers” in which case I think this would work…

    Comment by rogerdpack — January 7, 2012 @ 10:26 am

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress