5

I have a Logitech C310 webcam, which pulseaudio believes has a sample rate of 48 kHz. However, the hardware only works at 16 kHz. Most applications will try to use the 16 Khz audio at 48 kHz, resulting in a high-pitched squirrel or chipmunk sound.

This happens across a range of applications, and in Windows as well. How do I force pulseaudio to use the source at a 16 kHz sample rate?

3
  • First step is to check if the problem already appears on the ALSA level, because Pulseaudio trusts the ALSA data. Test with arecord -f ... and arecord --dump-hw-params ... after stopping Pulseaudio (or use pasuspender). If it's on the ALSA level, I'd try to fix it in ~/.asoundrc via a plugin, and then make Pulseaudio use that plugin instead of the raw hardware device.
    – dirkt
    Aug 24 '17 at 16:34
  • @dirkt Thanks, that gave me a starting point. I was able to reproduce the behavior with pasuspender & arecord. I was also getting weird behavior where arecord would freeze indefinitely and not record audio. Eventually gave up and bought a replacement. Aug 28 '17 at 17:11
  • Similar problem unix.stackexchange.com/q/500772/111181
    – jarno
    May 21 '19 at 7:52
2

I was looking for the same answer, for the same camera. I found it in the pulse-cli-syntax manpage. I had to add a line to my /etc/pulse/default.pa

update-source-proplist alsa_input.usb-046d_081b_FD644020-02.analog-mono format=s16le rate=16000 

Edit, didn't work. The only thing I can think of is turning off udev and loading modules manually

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.