[!NOTE]
The OpenBench code is licensed under the MIT License. However, please note that:
- SpeakerKit CLI and other integrated systems have their own licenses that apply
- The datasets used in this benchmark have their own licenses and usage restrictions (see Diarization Datasets section for details)
[!IMPORTANT]
OpenBench is the evolution of SDBench, originally introduced in the paper "SDBench: A Comprehensive Benchmark Suite for Speaker Diarization". While SDBench focused specifically on speaker diarization, OpenBench has expanded to encompass a broader range of speech processing tasks and is designed to accommodate future modalities beyond speech.
OpenBench is an open-source benchmarking framework for speech processing systems. Originally focused on speaker diarization (as SDBench), the framework has evolved to support comprehensive evaluation of:
- Speaker Diarization: Identifying "who spoke when" in audio recordings
- Speech Transcription: Converting speech to text (ASR)
- Orchestration: Combined diarization and transcription systems
- Streaming Transcription: Real-time speech-to-text
- Future Extensions: Designed to accommodate additional speech tasks and potentially other modalities
The primary objective is to promote standardized, reproducible, and continuous evaluation of open-source and proprietary speech processing systems across on-device and server-side implementations.
Key features include:
- Command Line Interface (CLI): Easy-to-use CLI for evaluation, inference, and exploration
- Simple interface to wrap your diarization, ASR, or ASR + diarization system
- Easily accessible and extensible metrics following
pyannote standard metric implementations
- Modular and convenient configuration management through
hydra
- Out-of-the-box
Weights & Biases logging
- Availability of 13+ commonly used datasets (Original dataset license restrictions apply)
[!TIP]
Want to add your own diarization, ASR, or orchestration pipeline? Check out our Adding a New Diarization Pipeline section for a step-by-step guide!
[!IMPORTANT]
Before getting started, please note that some datasets in our Datasets section require special access or have license restrictions. While we provide dataset preparation utilities in common/download_dataset, you'll need to procure the raw data independently for these datasets. See the dataset table for details on access requirements.
Results
For comprehensive benchmark results across all supported tasks, please see BENCHMARKS.md.
๐ Roadmap
- Distribute SpeakerKit CLI for reproduction
- Living Benchmark, running every other month
SpeakerKit Reproduction
If you want to reproduce SpeakerKit benchmark values please contact to get access to a CLI and an api-key speakerkitpro@argmaxinc.com.
If you already have access please update the speakerkit.yaml and follow the rest of instructions to setup the environment and run evals
Setting up the environment
Click to expand
In order to get started, first make sure you have uv installed. The official documentation has instructions for how to install the uv CLI.
If you already have uv installed you can run make setup to install the dependencies and set up the environment.
If you use conda or venv directly to manage your python environment you can install uv with pip install uv and then run make setup to install the dependencies.
Example with conda:
conda create -n <your-env-name> python=3.11
conda activate <your-env-name>
pip install uv
make setup
Alternatively, you can use uv directly to manage the environment:
# Install dependencies and create virtual environment
uv sync
# Activate the environment (if needed)
source .venv/bin/activate # On macOS/Linux
# or
.venv\Scripts\activate # On Windows
Command Line Interface (CLI)
Click to expand
OpenBench provides a powerful command-line interface for easy interaction with the benchmarking framework. The CLI offers three main commands for different use cases:
Available Commands
evaluate - Run Benchmark Evaluations
Run comprehensive evaluations of your pipelines on datasets with configurable metrics.
# Evaluate using pipeline and dataset aliases
openbench-cli evaluate \
--pipeline pyannote \
--dataset voxconverse \
--metrics der \
--metrics jer \
--use-wandb \
--wandb-project my-evaluation
# Evaluate using a configuration file
openbench-cli evaluate \
--evaluation-config config/my_evaluation.yaml \
--evaluation-config-overrides wandb.project=my-project
# Get help and see available options
openbench-cli evaluate --help
inference - Run Single Audio Inference
Test your pipeline on individual audio files for quick validation.
# Run inference on a single audio file
openbench-cli inference \
--pipeline pyannote \
--audio-path path/to/audio.wav \
--output-path path/to/output.json
# Run inference with custom configuration
openbench-cli inference \
--pipeline pyannote \
--audio-path path/to/audio.wav \
--pipeline-config '{"min_speakers": 2, "max_speakers": 5}'
summary - Explore Available Resources
Get an overview of all available pipelines, datasets, metrics, and their compatibility.
# Show all available pipelines, datasets, and metrics
openbench-cli summary
# Show only pipelines
openbench-cli summary --disable-datasets --disable-metrics --disable-compatibility
# Show only compatibility matrix
openbench-cli summary --disable-pipelines --disable-datasets --disable-metrics
# Get detailed information
openbench-cli summary --verbose
CLI Features
- Pipeline Aliases: Use friendly names like
pyannote, aws-diarization, whisperx instead of class names
- Dataset Aliases: Access datasets with simple names like
voxconverse, earnings21
- Metric Selection: Choose from available metrics like
der, jer, wer
- Weights & Biases Integration: Built-in support for experiment tracking
- Configuration Files: Support for Hydra-based configuration management
- Verbose Output: Detailed logging for debugging and monitoring
Environment Variables
Some pipelines require specific environment variables to be set:
# AWS Transcribe
export AWS_ACCESS_KEY_ID="your-access-key"
export AWS_SECRET_ACCESS_KEY="your-secret-key"
# Pyannote API
export PYANNOTE_API_KEY="your-api-key"
# SpeakerKit (contact speakerkitpro@argmaxinc.com for access)
export SPEAKERKIT_CLI_PATH="/path/to/speakerkit/cli"
export SPEAKERKIT_API_KEY="your-api-key"
# Other API-based pipelines
export PICOVOICE_API_KEY="your-api-key"
export DEEPGRAM_API_KEY="your-api-key"
export FIREWORKS_API_KEY="your-api-key"
export GLADIA_API_KEY="your-api-key"
export OPENAI_API_KEY="your-api-key"
For more details about pipeline requirements, run openbench-cli summary to see the full list of available pipelines and their descriptions.
Datasets
Click to expand
OpenBench supports different types of pipelines (Diarization, Transcription, Orchestration, and Streaming Transcription) with specific dataset schemas for each task type.
Diarization Datasets
The benchmark suite uses several speaker diarization datasets that are stored on the HuggingFace Hub. You can find all the datasets used in our evaluation in this collection. The datasets available in the aforementioned collection are:
Additional Dataset Collections
For other pipeline types, additional dataset collections are available:
From these datasets voxconverse and ami are not present as download options as they were already present in the HuggingFace Hub uploaded by diarizers-community.
Note: You can use openbench-cli summary to see all available pre-registered datasets and their compatibility with different pipeline types.
Dataset Schemas
OpenBench supports different pipeline types, each requiring specific dataset schemas:
Diarization Pipeline Schema
Required columns:
audio: Audio column containing:
array: Audio waveform as numpy array of shape (n_samples,)
sampling_rate: Sample rate as integer
timestamps_start: List of float containing start timestamps of segments in seconds
timestamps_end: List of float containing end timestamps of segments in seconds
speakers: List of str containing speaker IDs for each segment
Optional columns:
uem_timestamps: List of tuples [(start, end), ...] containing Universal Evaluation Map (UEM) timestamps for evaluation
Transcription Pipeline Schema
Required columns:
audio: Audio column containing:
array: Audio waveform as numpy array of shape (n_samples,)
sampling_rate: Sample rate as integer
transcript: List of strings containing the words in the transcript
Optional columns:
word_timestamps_start: List of float containing start timestamps for each word in seconds
word_timestamps_end: List of float containing end timestamps for each word in seconds
Orchestration Pipeline Schema
Required columns: