mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2026-07-04 13:01:09 +08:00
- Add simple_api.py: profile-based API that wraps GPT-SoVITS TTS engine - Add /api/tts endpoint for MVP: accepts ref audio/video, text, optional aux audio - Frontend auto-extracts audio from uploaded video files via Web Audio API - Add emotion presets (neutral/happy/calm/sad/angry) with speed customization - Add test_frontend/index.html with health check, audio playback, and download - Add contract tests (7 tests, all passing) using mock TTS pipeline - Add documentation: simple_api.md (full tutorial), simple_api_quickstart.md - Add startup scripts: go-simple-api.ps1, go-simple-api.bat, open-test-frontend.ps1 - Add soundfile and python-multipart to requirements.txt - Text splitting fixed to cut5 (punctuation-based) per MVP spec
14 lines
379 B
PowerShell
14 lines
379 B
PowerShell
$ErrorActionPreference = "Stop"
|
|
chcp 65001
|
|
Set-Location $PSScriptRoot
|
|
|
|
$runtimePython = Join-Path $PSScriptRoot "runtime\python.exe"
|
|
$apiScript = Join-Path $PSScriptRoot "simple_api.py"
|
|
$apiConfig = Join-Path $PSScriptRoot "simple_api.yaml"
|
|
|
|
if (Test-Path $runtimePython) {
|
|
& $runtimePython $apiScript -c $apiConfig @args
|
|
} else {
|
|
python $apiScript -c $apiConfig @args
|
|
}
|