#!/bin/bash # VOSK 模型本地服务器启动脚本(Linux/Mac) echo "========================================" echo "VOSK 模型本地服务器启动脚本" echo "========================================" echo "" # 检查 Python 是否安装 if ! command -v python3 &> /dev/null; then echo "[错误] 未检测到 Python3,请先安装 Python 3.x" exit 1 fi echo "[信息] 正在启动服务器..." echo "" # 启动 Python 服务器 python3 server.py