feat: 新增 kws 调试脚本

This commit is contained in:
Del Wang
2025-05-10 12:55:19 +08:00
parent a2c9cd5b70
commit 9129afcc99
3 changed files with 85 additions and 8 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ if [ ! -d "$WORK_DIR" ]; then
mkdir -p "$WORK_DIR"
fi
if [ ! -f "$WORK_DIR/kws" ]; then
if [ ! -f "$WORK_DIR/models/encoder.onnx" ]; then
echo "🔥 正在下载模型文件..."
curl -L -# -o "$WORK_DIR/kws.tar.gz" "$DOWNLOAD_BASE_URL/kws.tar.gz"
tar -xzvf "$WORK_DIR/kws.tar.gz" -C "$WORK_DIR"