guoyu/Test/python/快速测试Whisper本地.bat
2025-12-11 23:28:07 +08:00

42 lines
951 B
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
chcp 65001 >nul
echo ========================================
echo 测试本地 Whisper 服务
echo ========================================
echo.
echo [测试 1] 检查端口 5001...
netstat -ano | findstr :5001
if %errorlevel% equ 0 (
echo ✓ 端口 5001 已监听
) else (
echo × 端口 5001 未监听
echo.
echo 请先启动 Whisper 服务:
echo 双击运行 "启动Whisper服务.bat"
echo.
pause
exit /b 1
)
echo.
echo [测试 2] 健康检查...
curl -s http://localhost:5001/health
echo.
echo.
echo [测试 3] 检查 Python 进程...
tasklist | findstr python
echo.
echo ========================================
echo 测试完成!
echo.
echo 如果显示 "status": "ok",说明服务正常
echo.
echo 下一步:
echo 1. 在浏览器访问 http://localhost:5001/health
echo 2. 打开 MP3转换测试-Whisper版.html 进行完整测试
echo ========================================
pause