feat: AI 场景路由、ASR 服务及前后端全链路同步

- 新增 AI 场景路由控制器和管理接口
- 新增 ASR 语音识别服务及前后端集成
- 同步 AI Runtime 客户端到 Web/小程序/Life-Script
- 完善 AI 配置测试修复和管理后台路由配置
- 新增数据库迁移脚本

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-23 13:25:21 +08:00
parent d77090aa5e
commit 89fc42819d
72 changed files with 4584 additions and 383 deletions
@@ -5,6 +5,11 @@ server:
port: 19089
spring:
servlet:
multipart:
max-file-size: 10MB
max-request-size: 10MB
# 数据库配置 - 生产MySQL
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
@@ -64,6 +69,13 @@ emotion:
public-url-prefix: /tts/audio
max-text-length: 5000
default-voice: default_zh_female
# Speech-to-text config
asr:
enabled: true
engine-url: http://127.0.0.1:19120
max-file-size: 10485760
allowed-types: wav,mp3,m4a,mp4,aac,amr
# 生产模式配置
prod:
@@ -7,6 +7,11 @@ spring:
application:
name: emotion-single
servlet:
multipart:
max-file-size: 10MB
max-request-size: 10MB
profiles:
active: ${SPRING_PROFILES_ACTIVE:local}
@@ -102,6 +107,13 @@ emotion:
max-text-length: 5000
default-voice: default_zh_female
# Speech-to-text config
asr:
enabled: true
engine-url: http://127.0.0.1:19120
max-file-size: 10485760
allowed-types: wav,mp3,m4a,mp4,aac,amr
# 安全配置
security:
ignore-urls: