S
k2-fsa/sherpa★ 1,029 · C++
基于 PyTorch 的 transducer 与 CTC 语音转写引擎
Apache-2.0 · 允许商用speaker-recognition-models
同属「语音 / 视觉 / 视频生成」赛道的横向对比:jamiepine/voicebox 在总 Star 规模(★ 61.8k)与近期 7 日涨星势头上均处于领先;协议方面分别为 Apache-2.0 · 允许商用 与 MIT · 允许商用。
基于 PyTorch 的 transducer 与 CTC 语音转写引擎
基于 RepoForAI 每 6 小时独立快照,支持自动适配 GitHub 深浅色主题。
| 评估维度 | k2-fsa/sherpa | jamiepine/voicebox |
|---|---|---|
| 总 Star 规模 | ★ 1,029 | ★ 61,773 |
| 24h / 7d 增速 | +0 / +1 | +40 / +437 |
| 7 日涨星曲线 | ||
| 工程健康评分 | A · 85/100 | A+ · 98/100 |
| 部署形态标签 | Docker · API | Docker · Self-Hosted · MCP · Local AI · GPU · API |
| 主要语言栈 | C++ | Python |
| 商用协议评估 | Apache-2.0 · 允许商用 | MIT · 允许商用 |
| 维护活跃度 | 今天刚更新 | 今天刚更新 |
| 最新版本 | speaker-recognition-models | v0.7.1 |
| 典型适用场景 | 希望自托管预训练 transducer 或 CTC 模型,通过 C++、Python API 或 WebSocket 接入语音转写,并有能力维护 PyTorch 运行环境 | 使用授权人声制作播客、旁白或游戏对白,需要在本地处理录音的团队,以及要给 MCP 智能体或 OpenAI 兼容客户端接入语音输入输出的开发者 |
python-api-examples/ 示例及 WebSocket 服务路径。requirements.txt 列出 websockets、kaldifeat、sentencepiece>=0.1.96 和 numpy。22.12-py3,并固定 k2 1.24.4.dev20240223+cuda11.7.torch1.13.1。# Generate speech curl -X POST http://127.0.0.1:17493/generate \ -H "Content-Type: application/json" \ -d '{"text": "Hello world", "profile_id": "abc123", "language": "en"}' # Agent voice output — any app or script can speak in a cloned voice curl -X POST http://127.0.0.1:17493/speak \ -H "Content-Type: application/json" \ -H "X-Voicebox-Client-Id: my-script" \ -d '{"text": "Deploy complete.", "profile": "Morgan"}' # Transcribe an audio file curl -X POST http://127.0.0.1:17493/transcribe \ -F "file=@recording.wav" \ -F "model=turbo" # List voice profiles curl http://127.0.0.1:17493/profiles # OpenAI-compatible text-to-speech (any OpenAI TTS client works with base URL http://127.0.0.1:17493/v1) curl -X POST http://127.0.0.1:17493/v1/audio/speech \ -H "Content-Type: application/json" \ -d '{"model": "tts-1", "voice": "Morgan", "input": "Hello world"}' \ --output hel