moonshine

moonshine-ai活跃维护 有专家点评

超低延迟的语音转文字、意图识别和语音合成工具,用来搭建语音助手和语音交互界面,响应快、适合实时对话场景。

Very low latency speech to text, intent recognition, and text to speech, for building voice agents and interfaces

v0.1.6发布于 2026-11-06 05:49 UTC11,465star +37 / 7 天658fork同步于 2026-11-10 23:29 UTC

专家点评

上手难度:进阶更新于 2026-11-11

端侧流式语音转写与意图识别库,替代 Whisper 在本地做低延迟语音前端

适用场景

  • 在线语音对话的首 token 延迟敏感场景:流式推理让转写在用户还在说话时就开始出字,比整段录音后跑 Whisper 再拼接的链路少一个完整停顿
  • 单机/树莓派/移动端离线语音界面:模型从 1MB 起,同一套 API 覆盖 Python、JS/WASM、iOS、Android,不用为每个端各接一套推理栈
  • 需要意图识别而非只做转写的语音代理:转写结果直接进意图/对话层,省掉自己拼 NLU 的胶水代码
  • 批量跑评测或回归:pip 装完即可脚本化调用,不依赖账号和 API Key,CI 里能直接跑

踩坑

  • 非英语场景先确认许可证:README 明说旧版非流式模型走 Moonshine Community License 非商用,商用前要逐个模型核对,别默认整包可商用
  • 多语种是 issue 里反复被提的方向(德语跟踪 issue、multilingual fine-tuning 请求都在高反应列表),说明非英语覆盖不是开箱即用,选型时按目标语言先验证而不是看支持列表
  • 首次运行要下载对应语言和尺寸的模型,离线部署或受限网络环境要提前把模型文件预置好,否则 mic 命令第一次就卡在下载
  • 用编码代理接入时需先装 moonshine-voice skill,否则代理容易退回 Whisper 或旧 DialogFlow 接口,生成出与当前 API 不匹配的代码

同类对比

要的是成熟多语种、生态和微调工具链而非端侧延迟,选 Whisper 系(faster-whisper / whisper.cpp);只要纯流式转写、不需要意图识别层,可以看 Vosk 或 sherpa-onnx。

怎么上手

由 README 提炼,执行前请确认
pip install moonshine-voice
moonshine-voice mic --language en
硬件要求按 README 说明

README 未说明具体显存或 GPU 型号要求,仅强调全部在设备端本地运行,并列出支持 macOS、Linux、Windows、Raspberry Pi 等平台。

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

项目说明

由 README 自动翻译提炼

端侧实时语音工具箱,做语音代理和语音界面,低延迟且无需账号或 API Key

超低延迟的语音转文字、意图识别和语音合成工具,用来搭建语音助手和语音交互界面,响应快、适合实时对话场景。

核心能力

  • 边说话边推理,流式转写降低延迟
  • 语音转文字模型从 1MB 小模型到超过 Whisper Large V3 精度
  • 同一套库覆盖 Python、JS/WASM、iOS、Android 及桌面和树莓派
  • 支持多语种语音转文字与文本转语音
  • 提供意图识别与对话代理能力

容易踩的坑

首次使用需下载对应语言和尺寸的模型;非英语的旧版非流式模型采用非商用 Moonshine Community License,商用需注意;用编码代理时需先安装 moonshine-voice skill,否则可能误用 Whisper 或旧 DialogFlow 接口。

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

最近发版

5 个版本v0.1.6
  1. v0.1.6最新正式版2026-11-06 · 2026-11-06 05:49 UTC

    Release v0.1.6

  2. v0.1.52026-08-24 · 2026-08-24 22:13 UTC
    查看更新说明

    Release v0.1.5

  3. v0.1.32026-08-18 · 2026-08-18 06:11 UTC
    查看更新说明

    Release v0.1.3

  4. v0.1.22026-08-13 · 2026-08-13 05:45 UTC
    查看更新说明

    Release v0.1.2

  5. v0.1.12026-08-07 · 2026-08-07 13:02 UTC
    查看更新说明

    Release v0.1.1

用户点评

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

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

    README 原文

    未翻译

    Moonshine Voice Logo

    Moonshine Voice

    Voice Interfaces for Everyone

    Moonshine Voice is an open source AI toolkit for developers building real-time voice agents and applications.

    Full guides, models, and API reference are at moonshine-voice.readthedocs.io.

    • Everything runs on-device — fast, private, and with no account or API keys.
    • Optimized for live streaming, with low latency by doing work while the user is still talking.
    • Speech to text models trained from scratch, from higher accuracy than Whisper Large V3 down to tiny 1MB models.
    • One library across Python, JavaScript/WASM, iOS, Android, macOS, Linux, Windows, and Raspberry Pi.
    • Speech to text in English, Spanish, German, Mandarin, Japanese, Korean, Vietnamese, Tagalog, Ukrainian, and Arabic, and text to speech in English, Spanish, Arabic, German, French, Hindi, Italian, Japanese, Korean, Dutch, Portuguese, Russian, Turkish, Ukrainian, Vietnamese, and Mandarin.

    Quickstart

    pip install moonshine-voice
    moonshine-voice mic --language en
    

    Every other platform is covered in the Quickstart, with runnable samples in Examples.

    Building with a coding agent? Copy .agents/skills/moonshine-voice/ into your project's .agents/skills/ folder, or run npx skills add moonshine-ai/moonshine --skill moonshine-voice. The skill teaches the current API shape so the agent does not reach for Whisper or the old DialogFlow names.

    Documentation

    • Quickstart to install and run on your platform.
    • Using the Library for transcription, text to speech, and conversational agents.
    • Models for what's available, accuracy, and domain customization.
    • API Reference for the classes, options, and C API.

    Support

    License

    Licensed under the MIT License. The models are MIT by default too, in every language and at every size — the only exceptions are the legacy non-streaming models for languages other than English, which stay under the non-commercial Moonshine Community License and are enumerated in LICENSE.