[错误] 使用 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.locknever installstorchcodec, so on everyuv sync/ source install,torchaudio.load()raisesImportError.- The repo already handles the save side of this exact migration:
services/audio_io.pydocuments the sox → soundfile → TorchCodec backend shift and_safe_soundfile_writeguardstorchaudio.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