Files
tts-server/setup-venv.sh
2026-06-07 08:54:31 +02:00

20 lines
477 B
Bash
Executable File

#!/usr/bin/env bash
# Creates a venv in ./venv and installs Python deps for Chatterbox
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
VENV="${PYTHON_ENV:-${SCRIPT_DIR}/venv}"
if [ ! -d "${VENV}" ]; then
echo "==> creating venv at ${VENV}"
python3 -m venv "${VENV}"
fi
echo "==> installing Python dependencies"
"${VENV}/bin/pip" install --upgrade pip --quiet
"${VENV}/bin/pip" install chatterbox-tts
echo ""
echo "==> venv ready at ${VENV}"