Files
voice.sori.studio/scripts/run_server.sh
zenn 7101fdcd65 Initial commit: Korean voice-cloning TTS prototype
FastAPI backend, web UI, CosyVoice3/F5-TTS setup scripts, and handoff docs for GPU PC continuation.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-04 13:36:37 +09:00

20 lines
462 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT"
if [[ ! -x "$ROOT/.venvs/api/bin/uvicorn" ]]; then
echo "API venv 없음. ./scripts/setup_api.sh 실행"
exit 1
fi
export PYTHONPATH="$ROOT"
# shellcheck disable=SC1091
[[ -f "$ROOT/.env" ]] && source "$ROOT/.env"
exec "$ROOT/.venvs/api/bin/uvicorn" backend.app.main:app \
--host "${TTS_HOST:-0.0.0.0}" \
--port "${TTS_PORT:-8000}" \
--reload