speaches

speaches-aiMIT活跃维护

基于 faster-whisper 的语音转写服务,提供兼容 OpenAI API 的接口,用 Docker 一键部署即可获得本地语音识别与翻译能力。

v0.9.0-rc.3发布于 2025-12-27 18:55 UTC3,762star +5 / 7 天465fork同步于 2026-11-10 23:40 UTC

怎么上手

由 README 提炼,执行前请确认
docker compose up
硬件要求按 README 说明

README 说明支持 GPU 和 CPU,但未给出具体显存要求、GPU 厂商或型号。

有 Docker 镜像
下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

兼容 OpenAI API 的语音服务器,提供流式转写、翻译和语音生成,像 Ollama 一样管理 TTS/STT 模型

基于 faster-whisper 的语音转写服务,提供兼容 OpenAI API 的接口,用 Docker 一键部署即可获得本地语音识别与翻译能力。

核心能力

  • 兼容 OpenAI API,现有 SDK 和工具可直接调用
  • 基于 faster-whisper 实现流式语音转写,通过 SSE 边转写边返回
  • 支持 kokoro 和 piper 的文本转语音
  • 请求时指定模型即自动加载,空闲后自动卸载
  • 支持 GPU 与 CPU 运行,可通过 Docker Compose 部署

容易踩的坑

README 未给出具体安装命令,需查阅 speaches.ai 文档;模型在请求时按需下载,首次调用需等待加载;README 未说明默认端口。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本v0.9.0-rc.3
  1. v0.9.0-rc.3最新正式版2025-12-27 · 2025-12-27 18:55 UTC

    What's Changed

    New Contributors

    Full Changelog: https://github.com/speaches-ai/speaches/compare/v0.9.0-rc.2...v0.9.0-rc.3

  2. v0.9.0-rc.22025-11-11 · 2025-11-11 16:55 UTC
    查看更新说明

    What's Changed

    Full Changelog: https://github.com/speaches-ai/speaches/compare/v0.9.0-rc.1...v0.9.0-rc.2

  3. v0.9.0-rc.1pre-release2025-09-25 · 2025-09-25 15:48 UTC
    查看更新说明

    What's Changed

    New Contributors

    Full Changelog: https://github.com/speaches-ai/speaches/compare/v0.8.3...v0.9.0-rc.1

  4. v0.8.32025-09-19 · 2025-09-19 03:49 UTC
    查看更新说明

    What's Changed

    New Contributors

    Full Changelog: https://github.com/speaches-ai/speaches/compare/v0.8.2...v0.8.3

  5. v0.8.22025-09-19 · 2025-09-19 03:49 UTC
    查看更新说明

    What's Changed

    New Contributors

    Full Changelog: https://github.com/speaches-ai/speaches/compare/v0.8.1...v0.8.2

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Speaches

    speaches is an OpenAI API-compatible server supporting streaming transcription, translation, and speech generation. Speach-to-Text is powered by faster-whisper and for Text-to-Speech piper and Kokoro are used. This project aims to be Ollama, but for TTS/STT models.

    See the documentation for installation instructions and usage: speaches.ai

    Features:

    • OpenAI API compatible. All tools and SDKs that work with OpenAI's API should work with speaches.
    • Audio generation (chat completions endpoint) | OpenAI Documentation
      • Generate a spoken audio summary of a body of text (text in, audio out)
      • Perform sentiment analysis on a recording (audio in, text out)
      • Async speech to speech interactions with a model (audio in, audio out)
    • Streaming support (transcription is sent via SSE as the audio is transcribed. You don't need to wait for the audio to fully be transcribed before receiving it).
    • Dynamic model loading / offloading. Just specify which model you want to use in the request and it will be loaded automatically. It will then be unloaded after a period of inactivity.
    • Text-to-Speech via kokoro(Ranked #1 in the TTS Arena) and piper models.
    • GPU and CPU support.
    • Deployable via Docker Compose / Docker
    • Realtime API
    • Highly configurable

    Please create an issue if you find a bug, have a question, or a feature suggestion.

    Demos

    Realtime API

    https://github.com/user-attachments/assets/457a736d-4c29-4b43-984b-05cc4d9995bc

    (Excuse the breathing lol. Didn't have enough time to record a better demo)

    Streaming Transcription

    TODO

    Speech Generation

    https://github.com/user-attachments/assets/0021acd9-f480-4bc3-904d-831f54c4d45b