@echo off title VieNeu-TTS Studio Launcher cls echo ===================================================================== echo VieNeu-TTS Web Studio - Launcher echo ===================================================================== echo. :: Check if port 7860 is already in use netstat -ano | findstr :7860 >nul 2>&1 if %ERRORLEVEL% equ 0 ( echo [*] VieNeu-TTS Web Studio is already running! echo [*] Opening browser to http://127.0.0.1:7860... start http://127.0.0.1:7860 timeout /t 3 >nul exit /b ) echo [*] Checking system environment... :: Check if uv is in PATH where uv >nul 2>nul if %ERRORLEVEL% equ 0 ( set "UV_CMD=uv" goto :RUN_APP ) :: Check default installation path for uv set "UV_CMD=%USERPROFILE%\.local\bin\uv.exe" if exist "%UV_CMD%" ( goto :RUN_APP ) echo [!] Could not find 'uv' command. echo [+] Installing 'uv' automatically via PowerShell... powershell -ExecutionPolicy Bypass -c "irm https://astral.sh/uv/install.ps1 | iex" if exist "%USERPROFILE%\.local\bin\uv.exe" ( set "UV_CMD=%USERPROFILE%\.local\bin\uv.exe" echo [OK] uv installed successfully! goto :RUN_APP ) else ( echo [ERROR] Could not install uv automatically. Please install it manually. pause exit /b ) :RUN_APP echo. echo [*] Starting VieNeu-TTS Web Studio... echo [*] Browser will open automatically at: http://127.0.0.1:7860 echo. :: Open browser start http://127.0.0.1:7860 :: Run the web studio "%UV_CMD%" run vieneu-web echo. echo [!] Server stopped. pause