# requirements-nvidia.txt (For NVIDIA GPU Installation with CUDA 12.1)
# This file ensures a compatible set of CUDA-enabled torch packages are installed.

# Use the official PyTorch package index for CUDA 12.1.
--extra-index-url https://download.pytorch.org/whl/cu121

# Pinning a compatible set of torch-related libraries is crucial to avoid dependency conflicts.
# Updated to use PyTorch 2.5.1 for compatibility with our Colab-compatible chatterbox fork
torch==2.5.1+cu121
torchvision==0.20.1+cu121
torchaudio==2.5.1+cu121

# --- Core Application Dependencies ---
#
# IMPORTANT: chatterbox-tts is NOT included here. It must be installed
# separately with --no-deps to prevent torch version conflicts and
# ONNX source build failures.
#
# The start.py launcher handles this automatically.
#
# For manual installation, run these commands in order:
#   pip install -r requirements-nvidia.txt
#   pip install --no-deps git+https://github.com/devnen/chatterbox-v2.git@master s3tokenizer==0.3.0 onnx==1.16.0

# Chatterbox Dependencies (explicit, since --no-deps skips them)
# NOTE: s3tokenizer and onnx are installed with --no-deps alongside chatterbox
# to avoid protobuf version conflicts (onnx requires protobuf>=3.20.2 but
# descript-audiotools requires protobuf<3.20).
conformer==0.3.2
diffusers==0.29.0
transformers==4.46.3
einops>=0.7.0
omegaconf==2.3.0
resampy==0.4.3
resemble-perth==1.0.1

# Core Web Framework
fastapi>=0.100.0,<0.116.0      # starlette<1.0 needed for TemplateResponse compat
uvicorn[standard]>=0.27.0

# ML & Audio Libraries
numpy>=1.24.0
soundfile>=0.12.0
librosa>=0.10.0
safetensors>=0.4.0
descript-audio-codec==1.0.0

# Configuration & Utilities
PyYAML>=6.0
python-multipart>=0.0.5
requests>=2.28.0
Jinja2>=3.1.2,<3.2.0
watchdog>=3.0.0
aiofiles>=23.0.0
unidecode>=1.3.0
inflect>=7.0.0
tqdm>=4.65.0
hf_transfer>=0.1.4

# Audio Post-processing
pydub>=0.25.0
audiotsm>=0.1.2
praat-parselmouth>=0.4.0
