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

How to try the premium precision-2 pipeline with Pyannote Audio

Swap the pipeline name and token to run diarization on pyannoteAI servers with the same Python API.

Short answer: Install with pip install pyannote.audio; then create a pyannoteAI API key at dashboard.pyannote.ai, which comes with free credits; load Pipeline.from_pretrained("pyannote/speaker-diarization-precision-2", token=...) with that key. All steps.

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

privacy. precision-2 runs on pyannoteAI servers, so your audio leaves your machine.

cost. Free credits run out; check pyannoteAI pricing before processing a large archive.

Who it is forA team comparing open-source quality against a hosted service.

The problemHard audio with many speakers can need a stronger model than you can host.

The outcomeSpeaker turns from the precision-2 service, printed the same way as the local pipeline.

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 with pip install pyannote.audio
  2. Create a pyannoteAI API key at dashboard.pyannote.ai, which comes with free credits
  3. Load Pipeline.from_pretrained("pyannote/speaker-diarization-precision-2", token=...) with that key
  4. Run it on audio.wav and loop over output.speaker_diarization, then compare the turns with your community-1 run

Prompt for your agent

With pyannote/pyannote-audio, run both community-1 locally and precision-2 with my PYANNOTEAI_API_KEY on <one test recording>, and show me where the speaker turns differ.

Caveat. Speaker names come back as SPEAKER_00 style labels from the premium service.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for pyannote/pyannote-audio and "Try the premium precision-2 pipeline"

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