TTS 往返测试
test
运行 TTS 往返测试——纯逻辑单元测试,以及针对实时 TTS/STT 服务的可选集成测试。
- License 许可
- MIT
- 最近更新
- 2026-04-09
- Stars
- ★ 246
- Forks
- 15
01 前言 Front Matter
- name
- test
- triggers
- [ "test", "run tests", "test tts", "verify", "check" ]
- description
- Run TTS round-trip tests — pure-logic unit tests and optional integration tests against live TTS/STT services.
02 资源文件 8
- 参考文档references/2026-07-05-chainguard-entrypoint.md10.4 KB
- 参考文档references/2026-07-06-chainguard-tag-float-py314-protobuf.md4.2 KB
- 参考文档references/2026-07-06-entrypoint-override-mandatory.md7.2 KB
- 参考文档references/2026-07-13-precompute-deps-self-hosted-mac.md15.3 KB
- 参考文档references/2026-07-14-precompute-flask-fix.md12.7 KB
- 参考文档references/2026-07-28-silent-mcp-major-bump.md20.0 KB
- 参考文档references/2026-07-30-proxy-provider-masquerade-402.md9.7 KB
- 参考文档references/auth-cookie-ttl-class-2026-07-24.md18.9 KB
03 SKILL.md 正文
Test Realtime-API
Run unit tests and integration tests for the TTS pipeline.
When to use
- After deploying new code
- When the user says "test", "run tests", "verify", "check"
- To validate TTS chunking and sentence splitting logic
Instructions
Quick — pure-logic tests only (no network, instant):
cd /home/spark/git/autonomous-intelligence/realtime-api && bash scripts/test_tts.sh --logic-only
Full — includes TTS/STT round-trip (requires running containers):
cd /home/spark/git/autonomous-intelligence/realtime-api && bash scripts/test_tts.sh
What the tests cover
Pure-logic tests (always run)
- Dash splitting: em-dash-heavy text > 200 chars splits correctly in loose mode
- TTS chunking: 1000+ char comma-heavy text splits into chunks <= 800 chars
- Short text passthrough: text under 800 chars is not split
Integration tests (require TTS + STT containers)
- Whole-mode TTS: full text → TTS → resample → STT round-trip
- Sentence-mode TTS: split → per-sentence TTS → concatenate → STT round-trip
- Duration comparison: whole vs sentence mode within tolerance
After testing
Speak the result:
/home/spark/git/autonomous-intelligence/realtime-api/scripts/speak.sh "All tests passed."
04 同仓库更多 Skills
文本 TTS 语音播报
speak
使用 realtime-api Docker 技术栈中的 Magpie TTS 容器将文本朗读出来。零外部依赖——只需 curl + aplay。
realtime-api 容器构建与部署
deploy
构建并部署 realtime-api Docker 容器,并完整验证所部署的代码与本地源码一致。
统一记忆管理与知识图谱检索
memory
统一的记忆管理,涵盖笔记、知识图谱、RAG 搜索与文件分析。适用于以下场景:(1) 核心记忆——受保护的身份、项目、关系及绝不能遗忘的系统事实;(2) 工作笔记——按章节组织的单次会话临时笔记;(3) MongoDB RAG——支持向量检索的笔记,具备重要性评分、衰减、去重与归档能力;(4) Neo4j 知识图谱——实体、关系、合并重复项、强化提及、Cypher 查询;(5) 文件分析——深度读取文件并将知识提取到各个记忆层;(6) 服务初始化——通过 docker-compose 进行健康检查、启动/停止 MongoDB、Neo4j、TEI 嵌入服务,并支持部分初始化。
代码编写辅助
coding
增强的编码辅助。
统一记忆管理
memory
统一的记忆管理,涵盖笔记、知识图谱、RAG 搜索和文件分析。适用于处理以下内容:(1) 核心记忆——受保护的身份、项目、关系以及永不应遗忘的系统事实;(2) 工作笔记——按章节组织的每次会话临时笔记;(3) MongoDB RAG——支持向量搜索的笔记,具备重要性评分、衰减、去重和归档功能;(4) Neo4j 知识图谱——实体、关系、合并重复项、强化提及、Cypher 查询;(5) 文件分析——深度读取文件,将知识提取到所有记忆层;(6) 服务初始化——健康检查,通过 docker-compose 启动/停止 MongoDB、Neo4j 和 TEI embeddings,并支持部分配置。
任务完成时运行测试
test-on-finish
暂无简介