Skip to main content

polyvoice

CI PyPI License: MIT

Speaker diarization for Python — who spoke when.

Rust-powered, ONNX-based speaker diarization that runs on CPU, fits in 30 MB, and requires zero Python runtime overhead. Pipeline v2 with K-means auto-k clustering and overlap detection.

Install

pip install polyvoice

Requires Python 3.9+.

Quick start

import polyvoice

# Models auto-download on first run (~30 MB)
pipeline = polyvoice.Pipeline.balanced()

result = pipeline.run(samples, sample_rate=16000)

print(f"Speakers: {result['num_speakers']}")
for turn in result["turns"]:
    print(f"Speaker {turn['speaker']}: {turn['start']:.1f}s - {turn['end']:.1f}s")

API

  • polyvoice.Pipeline.balanced(models_cache=None) — balanced accuracy / speed.
  • polyvoice.Pipeline.mobile(models_cache=None) — smaller, faster model.
  • pipeline.run(samples, sample_rate)dict with num_speakers and turns.
  • pipeline.run_result(samples, sample_rate) → typed DiarizationResult with .to_json() / .to_rttm() / .to_srt() / .to_vtt() / .to_txt() projections.
  • polyvoice.DiarizationResult.from_json(json) — re-hydrate a saved result.

Performance

Pipeline VoxConverse-test DER (collar 0, overlap-scored) Model size
default (shipped) 18.5% ~30 MB

Full protocol, collar/averaging disclosure, and competitor numbers: docs/BENCHMARKS.md.

See the full repository for Rust / C / CLI APIs, benchmarks, and development docs.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

polyvoice-0.10.0-cp312-cp312-win_amd64.whl (8.4 MB view details)

Uploaded CPython 3.12Windows x86-64

polyvoice-0.10.0-cp312-cp312-manylinux_2_38_x86_64.whl (10.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.38+ x86-64

polyvoice-0.10.0-cp312-cp312-macosx_11_0_arm64.whl (9.2 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

Details for the file polyvoice-0.10.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: polyvoice-0.10.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 8.4 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for polyvoice-0.10.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d1e682b8ff679169fca736cba8d96e2a61ac7595b78b042b58b8d7d8128fca1a
MD5 e747616dda022b7069db8195fa48b982
BLAKE2b-256 e91c47207ea97b4dbe5426fb34e0382846272ff4bc4513b93a1fdb1096ccd4ec

See more details on using hashes here.

Provenance

The following attestation bundles were made for polyvoice-0.10.0-cp312-cp312-win_amd64.whl:

Publisher: release.yml on ekhodzitsky/polyvoice

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file polyvoice-0.10.0-cp312-cp312-manylinux_2_38_x86_64.whl.

File metadata

File hashes

Hashes for polyvoice-0.10.0-cp312-cp312-manylinux_2_38_x86_64.whl
Algorithm Hash digest
SHA256 3eda02f455a09228a5608ba3e1f10d35cc4189699ab3738d3261f48d0af784c7
MD5 7c559b065f86dd9cc7ccf5d4fa375c4b
BLAKE2b-256 14a27dc4fdc659ece15afaab95cf8e62b0c57d5c5b455af2251517514a866e7b

See more details on using hashes here.

Provenance

The following attestation bundles were made for polyvoice-0.10.0-cp312-cp312-manylinux_2_38_x86_64.whl:

Publisher: release.yml on ekhodzitsky/polyvoice

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file polyvoice-0.10.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for polyvoice-0.10.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c1ff4018331dad1c20d0364c4c1676bdfe8a6985dda5a8033cd9e627930e0024
MD5 e213bf72f7315f05b2749f647e0a14cd
BLAKE2b-256 d2a2f0fd26fa6a488ddecc04eb29ea1dbf2c6c9360bdc9d84b9d3176f6fb6379

See more details on using hashes here.

Provenance

The following attestation bundles were made for polyvoice-0.10.0-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: release.yml on ekhodzitsky/polyvoice

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.20.0

3 files

0.19.0

3 files

0.17.0

3 files

0.14.0

3 files

0.12.0

3 files

0.11.0

3 files

This release

0.10.0 This release

3 files

0.9.0

3 files

0.8.0

3 files

0.7.0

3 files

0.6.9

3 files

0.6.8

3 files

0.6.7

1 file

0.6.6

3 files

0.6.5

5 files

0.6.3

3 files

0.6.2

3 files

0.6.1

3 files

0.6.0

3 files

0.5.2

4 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page