统一 Docker Compose 部署,并将客户端拆分为独立子项目。

移除宿主机/conda 启动脚本与 dev 联调工具,后端仅通过 docker compose 部署并默认启用 GPU。模拟客户端与语音确认页迁入 clients/ 下自包含目录,切断对后端源码路径的依赖。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Kevin
2026-05-21 15:56:53 +08:00
parent c869fcc6b9
commit 6bc6801df9
38 changed files with 478 additions and 1702 deletions

View File

@@ -0,0 +1,23 @@
@echo off
REM 纯静态语音确认页:必须用 HTTP 打开(勿用 file://
REM 用法: start_http.bat [端口],默认 8080可选环境变量 VOCH_HTTP_BIND默认 0.0.0.0
setlocal
cd /d "%~dp0"
set "PORT=%~1"
if "%PORT%"=="" set "PORT=8080"
if "%VOCH_HTTP_BIND%"=="" set "VOCH_HTTP_BIND=0.0.0.0"
set "LAN_IP="
for /f "usebackq delims=" %%I in (`powershell -NoProfile -Command "Get-NetIPAddress -AddressFamily IPv4 ^| Where-Object {$_.IPAddress -notlike '127.*' -and $_.PrefixOrigin -ne 'WellKnown'} ^| Select-Object -First 1 -ExpandProperty IPAddress" 2^>nul`) do set "LAN_IP=%%I"
echo 语音确认静态页监听: %VOCH_HTTP_BIND%:%PORT%
if "%VOCH_HTTP_BIND%"=="0.0.0.0" (
echo 本机访问: http://127.0.0.1:%PORT%/
if not "%LAN_IP%"=="" (
echo 局域网访问: http://%LAN_IP%:%PORT%/
echo 服务端 Base URL 常用: http://%LAN_IP%:38080
)
) else (
echo 访问: http://%VOCH_HTTP_BIND%:%PORT%/
)
echo Ctrl+C 停止
python -m http.server %PORT% --bind %VOCH_HTTP_BIND% --directory "%CD%"
exit /b %ERRORLEVEL%