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>
This commit is contained in:
19
scripts/run_server.sh
Executable file
19
scripts/run_server.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user