Fix DAB+ audio sample rate issues using ffmpeg resampling #419
+32
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi folks - I was frustrated at the inabilyt to listen to 32k (and other non-48kHz DAB stations (the majority of DAB+ stations).
I fixed my local system and figure i would share the solution as a PR incase it is of wider value.
Description
This PR addresses an issue where DAB+ audio streams with sample rates other than 48kHz (common with 32kHz DAB+ broadcasts) would play at the incorrect speed ("chipmunk effect") in the web client, as OpenWebRX expects a consistent 48kHz input.
Changes
Pipeline Update (owrx/dab/dablin.py): Modified the dablin command execution to pipe its output through ffmpeg. This forces an explicit resample to 48kHz (f32le) before passing the data to the OpenWebRX audio chain.
Dependencies (docker/scripts/install-dependencies.sh): Added sox to the dependency list (useful for audio debugging/transcoding) and relies on ffmpeg for the runtime pipeline (which is typically available or easily added).
Evaluation
Verified on a Docker deployment (Raspberry Pi / ARM64). Stations that previously played with speed artifacts now play correctly.
Related Issues
Fixes audio synchronization for non-48kHz DAB stations.