Files
claude-voice-experiment/setup-venv.sh
mikael-lovqvists-claude-agent db8889aeed Initial commit — voice pipeline experiment
STT (Silero VAD + Whisper via sherpa-onnx), Chatterbox TTS HTTP server,
query completeness classifier (Ollama), multi-voice demo scripts, and
planning docs. Kept as reference; clean rewrite planned in separate repos.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-30 04:48:54 +00:00

25 lines
658 B
Bash
Executable File

#!/usr/bin/env bash
# Creates a venv in ./venv and installs Python deps for Bark.
# Safe to re-run — skips install if already done.
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
VENV="${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 transformers accelerate torch numpy
"${VENV}/bin/pip" install chatterbox-tts
chmod +x "${SCRIPT_DIR}/bark-server.py"
chmod +x "${SCRIPT_DIR}/chatterbox-server.py"
echo ""
echo "==> venv ready at ${VENV}"