Switch sample rates in PulseAudio automatically, based on currently selected input device?
I have a Logitech C310 USB webcam with a mic that records in mono @16000Hz. My computer's built-in soundcard / line in input records @44100Hz. /etc/pulse/daemon.conf uses the default-sample-rate of 44100.
I don't currently use the built-in soundcard for anything, and rely on the webcam mic for voice chats. At the current default sample rate, everything comes in sped up and high-pitched, like Alvin and the Chipmunks. Changing the pulse config file to use a sample rate of 16000 fixes it, which is great, but I'd rather not have to remember that I manually changed a config file somewhere if/when I want to use the built-in soundcard for recording in the future.
Is there any way to configure PulseAudio to switch sample rates automatically based on the currently selected input device?
Thanks in advance.
3 Reset to defaultKnow someone who can answer? Share a link to this question via email, Twitter, or Facebook.
More in general
"Zoraya ter Beek, age 29, just died by assisted suicide in the Netherlands. She was physically healthy, but psychologically depressed. It's an abomination that an entire society would actively facilitate, even encourage, someone ending their own life because they had no hope. Th…"