传参考音频会报错 Error generating audio: Could not load libtorchcodec.
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 37.8k
- Forks
- 4.3k
- Avg merge
- 7m
- Merged PRs (30d)
- 1
Description
传参考音频会报错
input: 你好,这是一个测试文本。
voice: example
prompt_wav_path: ./voices/example.wav
prompt_text: reference transcript
Error generating audio: Could not load libtorchcodec. Likely causes:
1. FFmpeg is not properly installed in your environment. We support
versions 4, 5, 6, 7, and 8. On Windows, ensure you've installed
the "full-shared" version which ships DLLs.
2. The PyTorch version (2.9.1+cu128) is not compatible with
this version of TorchCodec. Refer to the version compatibility
table:
https://github.com/pytorch/torchcodec?tab=readme-ov-file#installing-torchcodec.
3. Another runtime dependency; see exceptions below.
The following exceptions were raised as we tried to load libtorchcodec:
[start of libtorchcodec loading traceback]
FFmpeg version 8: Could not load this library: /home/bruce/proj/VoxCPM/.venv/lib/python3.10/site-packages/torchcodec/libtorchcodec_core8.so
FFmpeg version 7: Could not load this library: /home/bruce/proj/VoxCPM/.venv/lib/python3.10/site-packages/torchcodec/libtorchcodec_core7.so
FFmpeg version 6: Could not load this library: /home/bruce/proj/VoxCPM/.venv/lib/python3.10/site-packages/torchcodec/libtorchcodec_core6.so
FFmpeg version 5: Could not load this library: /home/bruce/proj/VoxCPM/.venv/lib/python3.10/site-packages/torchcodec/libtorchcodec_core5.so
FFmpeg version 4: Could not load this library: /home/bruce/proj/VoxCPM/.venv/lib/python3.10/site-packages/torchcodec/libtorchcodec_core4.so
[end of libtorchcodec loading traceback].
torchcodec 和ffmpeg都有安装
uv pip show torchcodec
Name: torchcodec
Version: 0.9.1
Location: /home/bruce/proj/VoxCPM/.venv/lib/python3.10/site-packages
Requires:
Required-by:
(voxcpm) (base)
ffmpeg -v
ffmpeg version 4.2.7-0ubuntu0.1 Copyright (c) 2000-2022 the FFmpeg developers
built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
configuration: --prefix=/usr --extra-version=0ubuntu0
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce reference-audio generation with the shown input, prompt_wav_path, PyTorch 2.9.1+cu128, torchcodec 0.9.1, and FFmpeg 4.2.7. Start by checking the TorchCodec and FFmpeg compatibility requirements; done means the example voice generates audio without the libtorchcodec loading error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, pytorch
- Domain
- audio-video-rtc, machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100