[ubuntu] use microphone from a usb webcam when plugged

view full story

http://ubuntuforums.org – Here is the solution on how to switch sound input onto a usb webcam bundled microphone whenever it is plugged in. Here is the script for the pulse audio which tries to find a first available usb input. In your home directory make a folder named bin and place contents in that directory in the file named pasetvebcam.sh Code: #!/bin/bash # Wait for the cam to be available for the pulseaudio sleep 2 # Get the name of the device, since it is the only usb based input on my installation. NAME=`pacmd list-sources | grep -E 'name: <. (Hardware)