Files
xiaoxia-saas/apps/api
CI Bot a1285be576 feat: TTS文字转语音配音引擎
- TTS服务抽象层 (TtsService Port),支持多provider切换
- Mock TTS实现:基于FFmpeg sine波合成,8种预设音色
- 配音核心引擎 (TtsEngine):整段配音+字幕联动配音
- 语速/语调调整:speed 0.5x~2.0x,pitch -12~12半音
- 8种预设音色:温暖女声/沉稳男声/活泼女声/可爱童声/客服女声/新闻男声/轻柔女声/磁性男声
- 字幕联动:按字幕片段分段合成,自动对齐时间轴
- 降级策略:TTS失败自动跳过,不阻断渲染
- 集成到UnifiedRenderService:配音作为独立音轨混入
- 音色列表API:GET /api/v1/tts/presets 支持按性别/风格/关键词筛选
- 40个新增单测全绿 + 134个现有测试全绿,无回归
2026-07-14 10:08:03 +08:00
..
2026-07-14 10:08:03 +08:00
2026-06-15 15:17:40 +08:00
2026-07-11 16:29:07 +08:00
2026-06-15 15:17:40 +08:00
2026-06-15 15:17:40 +08:00

xiaoxia-saas API

结构

  • app/core/:配置与基础能力
  • app/api/:路由组织
  • app/schemas/:请求响应模型
  • app/dependencies.py:依赖注入入口
  • main.pyFastAPI 启动入口

当前可用接口

  • GET /api/health
  • GET /api/projects?workspace_id=...
  • POST /api/projects