pyannote.audio is an open-source toolkit written in Python for speaker diarization. Based on PyTorch machine learning framework, it comes with state-of-the-art pretrained models and pipelines, that can be further finetuned to your own data for even better performance.
Highlights
:exploding_head: state-of-the-art performance (see Benchmark)
Compared to the 3.1 legacy pipeline, community-1 brings significant improvement in terms of speaker counting and assignment.
precision-2 premium pipeline further improves accuracy as well as processing speed (in its self-hosted version).
With the optional telemetry feature in pyannote.audio, you can choose to send anonymous usage metrics to help the pyannote team improve the library.
What we track
For each call to Pipeline.from_pretrained({origin}) (or Model.from_pretrained({origin})), we track information about {origin} in the following privacy-preserving way:
If {origin} is an official pyannote or pyannoteAI pipeline (or model) hosted on Huggingface, we track it as {origin}.
If {origin} is a pipeline (or model) hosted on Huggingface from any other organization, we track it as huggingface.
If {origin} is a path to a local file or directory, we track it as local.
We also track the pipeline Python class (e.g. pyannote.audio.pipelines.SpeakerDiarization).
For each file processed with a pipeline, we track
the file duration in seconds
the value of num_speakers, min_speakers, and max_speakers for speaker diarization pipelines
We do not track any information that could identify who the user is.
Configuring telemetry
Telemetry can be configured in three ways:
Using an environment variable
Within the current Python session only
Globally across sessions
All of these options will modify the value of the environment variable for consistency.
If the environment variable is not set, pyannote.audio will read the default value in the telemetry config.
The default config can also be changed from Python.
Using environment variable
You can control telemetry by setting the PYANNOTE_METRICS_ENABLED environment variable:
To control telemetry for your current Python kernel session:
from pyannote.audio.telemetry import set_telemetry_metrics
# enable metrics for current session
set_telemetry_metrics(True)
# disable metrics for current session
set_telemetry_metrics(False)
Global configuration
To set telemetry preferences that persist across sessions:
Tutorials The multi-objective tutorial targets the current version. The others were written for older versions of pyannote.audio and should be updated. Interested in working for pyannoteAI as a community manager or developer advocate? This might be a nice place to start!