My Audio Devices

  • Input: Logitech C310 webcam mic (16kHz)
  • Output: Sony MBH20 Bluetooth headset (44.1kHz) in High Fidelity Playback (A2DP Sink) mode

My Problem

With the default PulseAudio settings, the bluetooth headset sounds excellent, but recordings over the webcam mic are high-pitched and sped up, like an Alvin and the Chipmunks recording.

If I configure PulseAudio to set the sampling rate to 16kHz,

# /etc/pulse/daemon.conf

default-sample-rate = 16000

then the webcam works perfectly, but the sound quality through the headset is severely degraded.

My questions

  • Is there any way to configure the sampling rate for only a single source?
  • pacmd list-sources erroneously reports the sampling rate of the webcam mic as 48kHz (sample spec: s16le 1ch 48000Hz). Could that be the problem? If so, is there any way to manually change the sample spec? If not, does this qualify as a bug that should be reported to the pulseaudio maintainers?
  • or is there another fix to this problem that I’m not seeing?
  • Which version of Pulseaudio you are using?
    – jarno
    May 20 '19 at 7:10
  • Have you tried different resample-method?
    – jarno
    May 20 '19 at 7:45
  • Similar question
    – jarno
    May 20 '19 at 11:49
  • I'm on pulseaudio 12.2, but at this point, I've just switched to another mic, so I may never get around to fully debugging this issue!
    – Ryan Lue
    May 21 '19 at 5:45
  • 2
    Here is a bug report for this: gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/980
    – sezanzeb
    Sep 8 '20 at 16:31

You could try setting

   default-sample-rate = 44100
   alternate-sample-rate = 16000


   avoid-resampling = yes

if you have pulseaudio version >= 11.

In Pulseaudio 13 there may be even more options, see here

I think it is good to make a bug report about this issue and link it in a comment.

  • Still, I think the resampling should produce good quality sound even when using 48000 Hz sample rate. You could try to improve resamping by setting resample-method = speex-float-5 in daemon.conf; see ` man pulse-daemon.conf `
    – jarno
    Jul 5 '19 at 10:26
  • I'm having the same problem as the OP. The problem is not with resampling, but with the fact that some webcam's don't report their sample rates. So pacmd list-sources will always show the value of default-sample-rate as the sample rate of that device, and the necessary resampling never takes place, regardless of the selected algorithm. Jun 11 '20 at 9:58

The native sound card word rate should match the default-sample-rate otherwise there will be band limitation as observed.

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.