DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to find who spoke when, locally with Pyannote Audio

Run the community-1 open-source diarization pipeline on your own machine and print each speaker turn with start and stop times.

Short answer: Install ffmpeg, then pip install pyannote.audio; then Accept the pyannote/speaker-diarization-community-1 user conditions and create a Hugging Face access token; load the pipeline with Pipeline.from_pretrained("pyannote/speaker-diarization-community-1", token=...) as in the README. All steps.

  • Top pick
  • Content
  • Intermediate
  • 30 minutes
  • From the README
  • Claude Code
  • Codex
  • Cursor
  • Gemini CLI

Credentials. Keep your Hugging Face token in an environment variable rather than hard coded in scripts.

privacy. Speaker analysis of recordings of other people needs their consent.

Who it is forA developer adding speaker labels to transcripts.

The problemTranscripts without speaker turns are hard to read and analyze.

The outcomeA list of turns like start=0.2s stop=1.5s speaker_0.

What you need first

  • ffmpeg installed (needed by torchcodec audio decoding)
  • Python with `pip install pyannote.audio` or `uv add pyannote.audio`
  • A Hugging Face access token and accepted user conditions for pyannote/speaker-diarization-community-1; a GPU is optional

Steps

  1. Install ffmpeg, then pip install pyannote.audio
  2. Accept the pyannote/speaker-diarization-community-1 user conditions and create a Hugging Face access token
  3. Load the pipeline with Pipeline.from_pretrained("pyannote/speaker-diarization-community-1", token=...) as in the README
  4. Send it to the GPU when available, run it on audio.wav with a ProgressHook, and loop over output.speaker_diarization to print turns

Prompt for your agent

Using pyannote/pyannote-audio, write a script that loads speaker-diarization-community-1 with my HF token from an environment variable, runs it on <my audio file> with ProgressHook, and saves the turns to a CSV.

Caveat. Speaker labels are anonymous per file; mapping them to real names is up to you.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for pyannote/pyannote-audio and "Find who spoke when, locally"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer