跳到主要内容Skip to main content
语音与音频Speech & Audio生产可用Production

pyannote.audio

pyannote / pyannote-audio

说话人日志工具包,覆盖 VAD、speaker embedding、聚类和端到端 diarization pipeline。A speaker-diarisation toolkit covering VAD, speaker embeddings, clustering and end-to-end diarisation pipelines.

10.8k stars 1144 forks Jupyter Notebook 语言Language MIT 许可License 最近推送Last push 2026-11-19

为什么选Why choose it

  • 会议转写、播客切片必须知道谁在说;它的 diarization pipeline 仍是开源常用基线。The full diarisation pipeline is available.
  • 预训练模型和 fine-tune 接口完整,可用少量标注适配自己的会议录音。Components can be used separately.
  • 输出 RTTM 格式,方便和 WhisperX、ASR 结果对齐。A standard baseline for speaker segmentation.

不适合Not for

超低延迟实时单通道;pipeline 有窗口和聚类延迟。You need a turnkey transcription product.
不愿注册 Hugging Face 并接受模型条款的用户。You cannot accept the model licence and gated access requirements.

最小上手Minimum setup

  1. pip install pyannote.audio,配置 Hugging Face token。Run VAD and diarisation on a two-speaker clip.
  2. 用一段 5–10 分钟双人会议音频跑 diarization。Check speaker-turn boundaries against the audio.
  3. 把结果与 ASR 时间戳对齐,统计 speaker error 与漏检。Measure diarisation error on a labelled sample.

依赖与成本Dependencies and cost

Python;PyTorch;Hugging Face token;ffmpeg。Check runtime, model weights and external service dependencies in the README.

许可与使用边界License and usage boundaries

代码 MIT;预训练模型在 Hugging Face 上另有条款,商用前核对。Code is MIT; model weights, training data and generated content may have separate terms — check each before commercial use.

开源不等于可商用:GPL / AGPL 有传染性;代码许可、模型许可、生成内容许可要分开看。上线前读仓库 LICENSE 与模型卡,必要时让法务确认。Open source is not automatically commercial-use friendly: GPL / AGPL are copyleft; code, model and output licenses are separate. Read the LICENSE and model card before launch, and involve legal when needed.

替代与相邻Alternatives and neighbors

  • WhisperX — 轻量Lightweight,Whisper 的批处理加速版:VAD 切分、词级对齐与说话人分离,输出带时间戳的转写与字幕。A batched and accelerated Whisper pipeline with VAD segmentation, word-level alignment and speaker diarisation, producing timestamped transcripts and subtitles.
  • Whisper — 先试这个Start here,OpenAI 的语音识别模型与推理代码,多语言、带时间戳,安装简单。OpenAI’s speech-recognition models and inference code, multilingual and timestamp-capable, with a simple install.
  • VibeVoice — 先试这个Start here,微软开源语音模型家族:60 分钟长音频转写(谁在何时说了什么)、50+ 语言与流式 ASR;TTS 代码已因滥用下架。Microsoft’s open speech model family: 60-minute audio transcription with who spoke when, 50+ languages and streaming ASR; the TTS code was withdrawn because of misuse.

下一步Next steps

  • 打开 GitHub,先读 README、LICENSE、最近 release 与 issue。Open GitHub and read the README, LICENSE, latest release and issues first.
  • 按“部署依赖 / 显存 / 数据 / 网络 / 权限”列一张上手清单。Make an onboarding checklist for deployment dependencies, VRAM, data, network and permissions.
  • 用一个小样本跑通,再决定是否进生产;不要直接上生产数据。Run a small sample first, then decide on production; never start with production data.

GitHub 仓库 ↗GitHub repository ↗ 文档 ↗Docs ↗ 加入对比Add to compare

快照口径:stars / forks / language / license / pushed_at 来自 GitHub API 2026-11-20 快照;之后的变化没有回写。标签与“适合 / 不适合”是编辑判断,不是 GitHub 元数据。Snapshot: stars / forks / language / license / pushed_at come from the GitHub API snapshot on 2026-11-20; later changes are not written back. Tags and “fit / not fit” are editorial judgments, not GitHub metadata.
不背书:本站只做索引与风险提示,不审计代码、不保证安全、不替你做许可判断。仓库脚本与模型权重请自行审查。No endorsement: this site only indexes and flags risks; it does not audit code, guarantee security or make license decisions for you. Review repository scripts and model weights yourself.