feat: add remote audiobook generation

This commit is contained in:
Курнат Андрей
2026-08-10 05:24:47 +03:00
parent b115f76e76
commit 173bd672aa
42 changed files with 2300 additions and 125903 deletions
+20
View File
@@ -0,0 +1,20 @@
$ErrorActionPreference = 'Stop'
$root = 'C:\Users\seven\Qwen3-TTS'
$logs = Join-Path $root 'logs'
New-Item -ItemType Directory -Force -Path $logs | Out-Null
Start-Transcript -Path (Join-Path $logs 'audiobook-receiver.log') -Append | Out-Null
$env:QWEN_TTS_ROOT = $root
$env:HF_HUB_OFFLINE = '1'
$env:TRANSFORMERS_OFFLINE = '1'
Set-Location (Join-Path $root 'service')
try {
& (Join-Path $root '.venv\Scripts\python.exe') -m uvicorn audiobook_service:app `
--host 0.0.0.0 `
--port 8765 `
--workers 1
} finally {
Stop-Transcript | Out-Null
}