Installing / docs and RTX 50 series support
Hi and thanks!
Could you consider updating the project docs and code a bit?
In "Installation" you list only:
pip install chatterbox-tts
But if one doesn't have a virtual environment, you'll install awful lot of stuff in your main system Python environment. There are many users who are not Python enthusiasts, yet still want to try these fancy tools/models, so it would be better to have at least a warning?
What I did:
Cloned the repo (not sure if I need the repo at all though):
git clone https://github.com/resemble-ai/chatterbox.gitCreate a virtual environment:
py -3.12 -m venv venvActivate it (windows cmd in this case)
call ./venv/scripts/activate.batUpdate pip (just to get rid of annoying typical messages)
python.exe -m pip install --upgrade pipOnly then I ran this line
pip install chatterbox-tts
Many people (like me) are not Python specialists or even programmers...
Also - to run Gradio UI, you have missing requirements, so I had to install it:
pip install gradio
Errors: "RuntimeError: Attempting to deserialize object on a CUDA device but torch.cuda.is_available() is False"
pyproject.toml has very strict Pytorch versions:
- torch==2.6.0
- torchaudio==2.6.0
Could you consider using a newer version, at least 2.7 (if that is possible, at least it seems like it would be)?
This way it would be possible to use this on RTX 50 series Blackwell GPUs
So I did this in pyproject.toml dependencies array:
"torch",
"torchaudio",
And after this, I installed Pytorch 2.7 + cuda 12.8 versions of torch and torchaudio:
pip install torch torchaudio --index-url https://download.pytorch.org/whl/cu128 --force-reinstall
Note - changing to Pytorch 2.7 causes a few deprecation warnings about use of older API calls, like this one (I think there were 6 in total):
FutureWarning: LoRACompatibleLinear is deprecated... Please switch to PEFT
- This one I fixed by installing peft, no idea what it is tbh:
pip install peft
Shared public Gradio app address by default (why?)
- The app wants to create a public link
- Based on reading and LLM chat, these are actually public links - these work because of Gradio servers? Correct me if I'm wrong.
- Why? I really don't want such things enabled
What I did to disable this - I opened gradio_tts_app.py, and changed the last line to this:
).launch(share=False)
Finally after these steps, I started the Gradio UI. Seems like I can at least generate speech using reference audio file, it seemed to be working, but I haven't had time to test this model properly.
Source: resemble-ai/chatterbox