feat: 新增语音转文字(ASR)功能

- 后端:新增 /api/audio/transcribe 接口,调用 Ollama whisper 进行语音识别
- 前端:新增 AudioTranscribePage.vue 页面,支持 MP3/WAV/M4A/OGG/FLAC 等格式
- 注册路由、工具卡片、智能助手欢迎语更新

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
eaiadmin
2026-09-14 00:53:36 +08:00
co-authored by Claude Code
parent 752c7837ef
commit 0455f064ac
299 changed files with 1588 additions and 432 deletions
+5 -5
View File
@@ -46,14 +46,14 @@ EOF
shift
done
OURS=(eaisalestrain-server node npm vite)
OURS=(eai_agentplatform-server node npm vite)
BACKEND_PORT=10232
FRONTEND_PORT=10231
REPO_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
APP_DIR="$REPO_DIR/eai_ap_app"
APP_DIR="$REPO_DIR/eai_agentplatform"
BACKEND_DIR="$APP_DIR/backend-go"
BACKEND_BIN="$BACKEND_DIR/bin/eaisalestrain-server"
BACKEND_BIN="$BACKEND_DIR/bin/eai_agentplatform-server"
FRONTEND_DIR="$APP_DIR/frontend"
DEV_BIND_HOST="${EAI_DEV_BIND_HOST:-127.0.0.1}"
DEBUG_LOG_DIR="$REPO_DIR/debuglog"
@@ -179,7 +179,7 @@ cleanup_started() {
fi
}
echo "==> eaisalestrain dev launcher"
echo "==> eai_agentplatform dev launcher"
echo " repo : $REPO_DIR"
echo " backend : $BACKEND_DIR (port $BACKEND_PORT)"
echo " frontend : $FRONTEND_DIR (port $FRONTEND_PORT)"
@@ -223,7 +223,7 @@ echo
trap cleanup_started EXIT
echo "[3/4] launch services"
echo " [.] starting backend (eaisalestrain-server :$BACKEND_PORT)"
echo " [.] starting backend (eai_agentplatform-server :$BACKEND_PORT)"
echo " [.] log : $BACKEND_LOG"
nohup env PORT="$BACKEND_PORT" "$BACKEND_BIN" >>"$BACKEND_LOG" 2>&1 </dev/null &
BACKEND_PID=$!