# Isolated venv for Parler-TTS (parler-tts/parler-tts-*).
#
# parler-tts pins an old transformers/tokenizers/huggingface-hub that conflict
# with the coderai server's 5.x stack, so it runs in its own venv and coderai
# talks to it over HTTP (codai/api/parler_worker.py +
# tools/parler_tts_service.py). Do NOT merge these into requirements.txt.
#
# torch is PINNED here, which is the point of the file. Installing parler-tts
# with a bare `pip install` resolved whatever was newest — measured on zeiss,
# 2026-10-29: torch 2.15 with the CUDA-13 wheels (nvidia_cudnn_cu13 9.26). The
# venv built, the service started, the model loaded, and the first synthesis
# died inside the DAC audio decoder's conv1d:
#
#   RuntimeError: CUDNN_BACKEND_TENSOR_DESCRIPTOR cudnnFinalize failed
#   ptrDesc->finalize() cudnn_status: CUDNN_STATUS_SUBLIBRARY_LOADING_FAILED
#
# — every cudnn sublibrary present in the venv, and the stack unable to load
# them. Pinning to the same CUDA build that is proven on this fleet (the
# server runs 2.10+cu128, the CrisperWhisper venv 2.5.1+cu124) takes that
# resolution out of pip's hands. An operator on a newer CUDA can raise it.

--extra-index-url https://download.pytorch.org/whl/cu124
# 2.6.0, not the 2.5.1 the CrisperWhisper venv uses: torchaudio's first
# python-3.13 wheel is 2.6.0 (`No matching distribution found for
# torchaudio==2.5.1+cu124 (from versions: 2.6.0, 2.6.0+cu124, …)`), and these
# two have to be the same version.
torch==2.6.0+cu124
# torchaudio has to be pinned WITH torch, not left to pip. parler-tts pulls in
# descript-audiotools, which requires an unpinned torchaudio: pip resolved
# 2.11.0 against torch 2.5.1, the install reported success, and `import
# parler_tts` then failed (measured on zeiss, 2026-10-29).
torchaudio==2.6.0+cu124

# parler-tts has no release on PyPI that carries the multilingual models, so it
# comes from the repo. It brings its own transformers pin with it; nothing here
# overrides that, because that pin is the reason this venv exists.
git+https://github.com/huggingface/parler-tts.git

soundfile>=0.12.0
