[错误] 使用 torchaudio 2.9 时, Dub 编译失败: torchaudio.load 通过缺失的 TorchCodec 进行路由(dub_speech_missing)

作者: tokutei58301-boop创建于 2026年9月28日更新于 2026年9月29日
  • torchaudio 2.9 made torchaudio.load() a TorchCodec-routed call (torchaudio._torchcodec.load_with_torchcodec).
  • uv.lock never installs torchcodec, so on every uv sync / source install, torchaudio.load() raises ImportError.
  • The repo already handles the save side of this exact migration: services/audio_io.py documents the sox → soundfile → TorchCodec backend shift and _safe_soundfile_write guards torchaudio.save (the warning line above comes from that path, which is why TTS segments render fine). The load side was not covered.

内容来源: debpalash/OmniVoice-Studio