Setting Input Audio for VirtualBox (Linux)

April 28th, 2009 by wd5gnr

If you use VirtualBox to run things (like Windows) under Linux you know that its pretty capable. It can even map sound from the guest OS to the Linux ALSA system. However, the GUI only provides a way to use the same input and output device on the host OS. That’s a problem for me. I have a normal PCI or onboard sound card (I have both) that I use for output. But for input I use a USB microphone that has no output.

It turns out there is an environment variable for this. If you set:

VBOX_ALSA_ADC_DEV

you can select a different sound device for input. For example, my microphone is set to hw:3,0 (getting a USB device to come up as the same card every time is another post for another day). So before launching any VirtualBox I make sure to have this environment variable set:

VBOX_ALSA_ADC_DEV=hw:3,0

Works great!

Add This! BlogLines del.icio.us Digg Diigo DZone Facebook Google Google Reader Yahoo! MyWeb Netscape Netvouz reddit SlashDot Sphere StumbleUpon Technorati

One Response

  1. zcat

    Hi. This looks like what I need: i need to use a USB sound card adn microphone on windows XP guest for dictation.

    How do I set these variables?
    Where do I find out current USB sound card /microphone settings?

    Thanks

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.