Skip to content

fix: calls: Align bitrates in DSP

Martin Kennedy requested to merge (removed):dsp-rate-mismatch-resample into master

This commit aligns bitrates between webrtc echo probe and dsp.

Before this commit, if the far-end source was sending audio to the caller at a rate of e.g. 8000, that stream would be consumed by the echo probe and would require that the DSP doing audio clean-up also process output data at rate 8000:

... gst-stream-error-quark: Echo Probe has rate 8000 , while the DSP is running at rate 48000, use a caps filter to ensure those are the same. (11)

See issue #11023 (closed) 1 for more logs like the above.

To fix this, add an audioresample2 and capsfilter3 to the sink (corresponding to the local speakers, for example) so that output is the same rate as input, tacked at rate 48000.

Fixes: b5e9c8e3 ("Calls: Add DSP")

Signed-off-by: Martin Kennedy hurricos@gmail.com

Edited by Daniel Brötzmann

Merge request reports