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
@@ -0,0 +1,31 @@
# eai_agentplatform 后端环境变量(交付样例,实际值在 Clonezilla 清理时生成)
# systemd 通过 EnvironmentFile 读取;system_config 表可覆盖 LLM 相关字段。
# 监听端口(Nginx 反代到 127.0.0.1:8080)
PORT=8080
# SQLite 数据文件(相对 WorkingDirectory=/opt/eai_agentplatform)
DB_PATH=data/eai_agentplatform.db
# JWT 签名密钥 —— 交付前必须随机生成(见 DELIVERY.md)
JWT_SECRET=__CHANGE_ME__GENERATE_48_CHARS_RANDOM__
JWT_EXPIRE_MINUTES=480
# 内网 LLM(OpenAI 兼容接口)
LLM_BASE_URL=http://127.0.0.1:11434/v1
LLM_API_KEY=ollama
LLM_MODEL=qwen2.5:7b
EMBED_MODEL=bge-m3
# 数据目录
KB_DATA_DIR=data/kb_data
KNOWLEDGE_SOURCE_DIR=/opt/eai_agentplatform/knowledge_source
# 上传大小限制(字节)
FILE_MAX_SIZE_DOC=209715200
FILE_MAX_SIZE_VIDEO=2147483648
CHUNK_THRESHOLD=104857600
# 文档转换裸进程
LIBREOFFICE_BIN=/usr/bin/libreoffice
PDFTOTEXT_BIN=/usr/bin/pdftotext