One framework to benchmark them all — ASR, emotion, speaker identification, and noise robustness in a single unified API.
The speech and audio LLM space has exploded recently, but evaluation is still a mess. Every paper implements its own evaluation harness, benchmarks its own tasks, and reports numbers in ways that are hard to compare. AudioBench-Multi is my attempt to fix that — at least for my own research.
The design goals are simple:
- Unified interface: one
Evaluatorclass, multiple tasks, any model - Correct metrics: WER/CER with proper normalization, macro-F1 for classification
- Noise robustness: systematic evaluation across SNR levels and noise types — not just clean speech
- Extensible: adding a new task or model backend is < 50 lines
Currently supported tasks: automatic speech recognition (ASR), speech emotion recognition, closed-set speaker identification, and noise-robust ASR evaluation.
The evaluation pipeline has three main components:
┌──────────────────┐ ┌──────────────────────┐ ┌───────────────────┐
│ Task (BaseTask) │────▶│ Evaluator (core) │────▶│ Metrics │
│ │ │ │ │ │
│ - load_dataset │ │ - batch inference │ │ - compute_wer │
│ - preprocess │ │ - audio caching │ │ - compute_cer │
│ - get_prompt │ │ - result export │ │ - classification │
│ - compute_metrics│◀───│ │ │ _metrics │
└──────────────────┘ └──────────┬───────────┘ └───────────────────┘
│
┌──────────▼──────────┐
│ Model (BaseAudioLM) │
│ │
│ - WhisperModel │
│ - HFSpeechLM │
│ - QwenAudio │
└─────────────────────┘
Tasks and models are registered with a simple decorator:
@TaskRegistry.register("my_task")
class MyTask(BaseTask):
...git clone https://github.com/seycheles/audiobench-multi
cd audiobench-multi
pip install -e .
# For Whisper backend
pip install openai-whisperRequirements: Python 3.8+, PyTorch ≥ 2.1, and torchaudio, datasets, transformers, librosa.
from audiobench import Evaluator
import audiobench.tasks # registers built-in tasks
import audiobench.models # registers built-in models
evaluator = Evaluator(
model_name="whisper-base",
tasks=["asr", "emotion"],
batch_size=8,
device="cuda",
output_dir="./results",
)
results = evaluator.run()
# results["asr"]["wer"] → 0.043
# results["emotion"]["f1"] → 0.71# Run ASR and emotion tasks with Whisper
python scripts/run_eval.py --model whisper-base --task asr --task emotion --device cuda
# Run everything with a config file
python scripts/run_eval.py --config configs/default.yaml --output-dir ./my_results
# See available options
python scripts/run_eval.py --help| Task | ID | Metrics | Default Dataset |
|---|---|---|---|
| Automatic Speech Recognition | asr |
WER, CER | LibriSpeech test-clean |
| Speech Emotion Recognition | emotion |
Accuracy, Macro-F1 | IEMOCAP |
| Speaker Identification (closed-set) | speaker_id |
Top-1 Accuracy | VoxCeleb1 |
| Noise-Robust ASR | noise_robust_asr |
WER @ multiple SNRs | LibriSpeech + synthetic noise |
| Model ID | Description |
|---|---|
whisper-base |
OpenAI Whisper base (74M params) |
whisper-large-v3 |
OpenAI Whisper large-v3 (1.5B params) |
qwen-audio |
Qwen-Audio-Chat (7B) |
salmonn-7b |
SALMONN 7B |
Adding your own model:
from audiobench.models.base import BaseAudioLM
from audiobench.registry import ModelRegistry
import numpy as np
@ModelRegistry.register("my-model")
class MyModel(BaseAudioLM):
def generate(self, audio: np.ndarray, prompt: str, **kwargs) -> str:
# call your model here
return "transcription or answer"Results on a subset of benchmarks using Whisper (for reference — not the point of this repo, just sanity checks):
| Model | LibriSpeech test-clean WER | Emotion F1 (IEMOCAP) |
|---|---|---|
| whisper-base | 4.3% | — |
| whisper-large-v3 | 2.7% | — |
| Qwen-Audio-Chat | 3.1% | 0.71 |
Note: Emotion F1 for Whisper not reported — the model isn't designed for emotion classification.
The noise_robust_asr task evaluates WER across SNR levels [-5, 0, 5, 10, 20] dB for white, babble, and music noise:
from audiobench.tasks.noise_robust import NoiseRobustASRTask
task = NoiseRobustASRTask(
snr_levels=[20, 10, 5, 0],
noise_types=["white", "babble"],
max_samples=200,
)
# Use task.evaluate_conditions(model, dataset) for the full noise profilefrom audiobench.tasks.base import BaseTask
from audiobench.registry import TaskRegistry
@TaskRegistry.register("language_id")
class LanguageIdTask(BaseTask):
task_name = "language_id"
def load_dataset(self):
# return list of {"audio_path": ..., "reference": "en"}
...
def preprocess_audio(self, sample):
from audiobench.utils.audio import load_audio
return load_audio(sample["audio_path"])
def get_prompt(self, sample):
return "What language is being spoken?"
def compute_metrics(self, predictions, references):
from audiobench.metrics.classification import compute_classification_metrics
return compute_classification_metrics(predictions, references)Task classes accept a dataset_name argument. If the dataset is on HuggingFace Hub, it just works through the HF datasets library.
# Install dev dependencies
pip install -e ".[dev]"
# Run tests
pytest tests/ -v
# Run tests with coverage
pytest tests/ --cov=audiobench --cov-report=term-missing- ASR task (WER/CER)
- Emotion recognition task
- Speaker identification task
- Noise robustness evaluation
- Whisper and HuggingFace model backends
- Multilingual evaluation (Mandarin, French, Spanish)
- Hallucination detection metric for ASR
- Streaming inference support
- Web leaderboard
Built using PyTorch, HuggingFace Transformers, and HuggingFace Datasets. Thanks to the Vector Institute for compute access.
@misc{audiobench-multi,
author = {Sichen Ye},
title = {AudioBench-Multi: Speech \& Audio LLM Evaluation Suite},
year = {2025},
url = {https://github.com/seycheles/audiobench-multi}
}MIT License. See LICENSE for details.
Issues and PRs are welcome. For big changes, please open an issue first.
git clone https://github.com/seycheles/audiobench-multi
pip install -e ".[dev]"
pytest tests/ -vPlease keep test coverage for new task and metric code.