Kokoro-FastAPI/start-cpu.ps1

17 lines
602 B
PowerShell
Raw Normal View History

2025-03-15 02:19:25 +13:00
$env:PHONEMIZER_ESPEAK_LIBRARY="C:\Program Files\eSpeak NG\libespeak-ng.dll"
$env:PYTHONUTF8=1
$Env:PROJECT_ROOT="$pwd"
$Env:USE_GPU="false"
$Env:USE_ONNX="false"
$Env:PYTHONPATH="$Env:PROJECT_ROOT;$Env:PROJECT_ROOT/api"
$Env:MODEL_DIR="src/models"
$Env:VOICES_DIR="src/voices/v1_0"
$Env:WEB_PLAYER_PATH="$Env:PROJECT_ROOT/web"
uv pip install wheel setuptools ninja typing_extensions>=4.10.0 fastapi uvicorn
uv pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124
uv pip install -e ".[cpu]"
uv run --no-sync uvicorn api.src.main:app --host 0.0.0.0 --port 8880