Skip to content

Use built-in resampling when SOXR is unavailable - #1377

Merged
0xShug0 merged 3 commits into
mainfrom
fix/optional-soxr-resampling
Nov 23, 2026
Merged

0xShug0 merged 3 commits into
mainfrom
fix/optional-soxr-resampling

Conversation

@0xShug0

@0xShug0 0xShug0 commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Some models fail when the optional SOXR runtime library is unavailable. Reuse the existing torchaudio-compatible sinc resampler through a shared resample_mono_soxr_or_sinc() API, and migrate affected callers without changing their SOXR settings or the SOXR-present path.

Fallback warnings now appear on stderr without --log, without duplicating file or callback logging. Model documentation warns that fallback output can differ.

Validation:

  • Debug build passed. Focused warning checks cover logging disabled, file logging, callback logging, and SOXR availability.
  • MulaCover and SoulX-Singer complete without SOXR; their SOXR-present outputs remain byte-identical. SeedVC/MeanVC2 preprocessing matches the previous implementation across 40 comparisons.
  • CUDA SOXR/fallback pairs complete for ROSVOT, Audio Flamingo, CrisperWhisper, OWSM, OWSM-CTC, SAMSONE, AuK, Tone Color VC, Edda, Hviske and MOSS-Transcribe-Diarize. Recognition results match in the checked ASR cases; MOSS boundaries shift by at most 40 ms.
  • Fallback is not numerically equivalent: SoulX-Singer and Tone Color VC show substantial waveform differences. AuK editing cosine is 0.9993278; its cloning case exposes a limitation present on both paths. No general audio-quality or performance equivalence is claimed.

Runtime checks were performed on Linux/CUDA; Windows runtime behavior was not tested.

@0xShug0
0xShug0 merged commit caa060b into main Nov 23, 2026
7 checks passed
@0xShug0
0xShug0 deleted the fix/optional-soxr-resampling branch November 23, 2026 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant