[REQUEST] Please Create Colab version of this tried, facing issues setting dependencies.
change runtime to T4
have to uninstall default transformers first to avoid conflicts
!!pip uninstall -y chatterbox-tts transformers torch torchvision numpy
install chatterbox transformers
!pip install -q chatterbox-tts
@patbhakta Trying it thanks.
@patbhakta
Building wheels for collected packages: onnx DEPRECATION: Building 'onnx' using the legacy setup.py bdist_wheel mechanism, which will be removed in a future version. pip 25.3 will enforce this behaviour change. A possible replacement is to use the standardized build interface by setting the --use-pep517option, (possibly combined with--no-build-isolation), or adding a pyproject.toml` file to the source tree of 'onnx'. Discussion can be found at https://github.com/pypa/pip/issues/6334
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip. Building wheel for onnx (setup.py) ... error ERROR: Failed building wheel for onnx Running setup.py clean for onnx Failed to build onnx ERROR: Failed to build installable wheels for some pyproject.toml based projects (onnx`
I got this error do you have any code working for colab ?
I tried below::
!!pip uninstall -y chatterbox-tts transformers torch torchvision numpy
!pip install -q chatterbox-tts
!git clone https://github.com/devnen/chatterbox-tts-server.git !cd chatterbox-tts-server
Change directory and list contents in one line
%cd chatterbox-tts-server
!sudo apt update && sudo apt install python3 python3-venv python3-pip libsndfile1 ffmpeg -y
✓ Run this in a fresh Colab cell
!pip install --upgrade pip setuptools wheel # always good hygiene !pip install "onnx==1.18.0" # pulls the cp311 wheel !pip install -r requirements.txt # everything else
Colab notebook created: https://colab.research.google.com/github/devnen/Chatterbox-TTS-Server/blob/main/Chatterbox_TTS_Colab_Demo.ipynb
Instructions:
Click the link above, then select this from the menu: Runtime / Change runtime type / T4 GPU / Save
Then run both cells and access the Web UI via the link that appears.
The notebook automatically handles all dependency conflicts you encountered. First run takes a few minutes to download models.
@devnen thank you so much buddy. closing the issue.