# ============================================================================
# CHATTERBOX TTS SERVER - REQUIREMENTS (NVIDIA CUDA 12.8 / BLACKWELL)
# ============================================================================
# This file provides CUDA 13.0 support for Blackwell architecture (sm_121):
#   - GB10
#
# For RTX 20/30/40 series GPUs, use requirements-nvidia.txt instead.
#
# ============================================================================
# IMPORTANT: chatterbox-tts is NOT included here. It must be installed
# separately with --no-deps to prevent PyTorch from being downgraded.
#
# The start.py launcher handles this automatically.
#
# For manual installation, run these commands in order:
#   pip install -r requirements-nvidia-cu130.txt
#   pip install --no-deps git+https://github.com/devnen/chatterbox-v2.git@master s3tokenizer==0.3.0 onnx==1.16.0
# ============================================================================

# --- PyTorch CUDA 13.0 Package Index ---
--extra-index-url https://download.pytorch.org/whl/cu130

# --- Deep Learning Framework (CUDA 13.0 with sm_121 Blackwell support) ---
torch==2.10.0
torchvision
torchaudio==2.10.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
