speechbrain
All-in-one speech toolkit in pure Python and Pytorch
What it is and what it does
SpeechBrain is an open-source PyTorch toolkit designed to accelerate development of conversational AI systems. It provides a unified framework for speech and text processing tasks including speech recognition, speaker recognition, speech enhancement, speech separation, language modeling, and dialogue systems. The toolkit ships with over 100 pretrained models hosted on HuggingFace and supports both inference and training workflows.
The package is structured around training recipes—YAML-based hyperparameter configurations paired with Python training scripts—that allow you to train models from scratch or fine-tune existing pretrained models like Whisper, Wav2Vec2, and Llama2. It includes extensive documentation and tutorials aimed at researchers, practitioners, and students. Core dependencies are torch, torchaudio, numpy, scipy, and huggingface_hub, making it suitable for environments already set up for deep learning work.
Use it for:
- Build and deploy automatic speech recognition systems using pretrained Conformer or Transformer models with minimal code.
- Fine-tune pretrained models like Whisper or Wav2Vec2 on custom datasets using provided training recipes.
- Implement speech enhancement or speaker separation pipelines for audio preprocessing in production systems.
- Accelerate research by comparing new model architectures against established baselines across 40+ datasets.
- Teach conversational AI and speech processing concepts using tutorials and documented examples in academic settings.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
SpeechBrain is a PyTorch-based toolkit for building speech and text processing systems, providing pretrained models, training recipes, and inference interfaces for tasks like speech recognition, speaker identification, speech enhancement, and language modeling.
Yes. SpeechBrain is actively maintained, permissively licensed, and has low installation friction. It is well-suited for anyone building speech or text processing systems in Python, whether for research, prototyping, or production inference. The extensive pretrained model library and training recipes reduce development time significantly. Choose it if you need a unified toolkit spanning multiple speech/text tasks; avoid it only if you require a narrowly specialized tool for a single task.
Install
speechbrain on PyPI
pip
pip install speechbrainuv
uv add speechbrainpoetry
poetry add speechbrainInstalling speechbrain
Before you install
Installation is straightforward via PyPI with low friction. The package maintains active status and depends on well-established libraries (torch, torchaudio, numpy, scipy, soundfile) that are standard in ML workflows. No unusual system dependencies or compatibility concerns are evident from the fact sheet.
License in practice
Licensed under Apache-2.0 (permissive), allowing commercial use, modification, and distribution with minimal restrictions. You may use this in proprietary projects provided you include a copy of the license and state significant changes.
Quickstart
pip install speechbrain
from speechbrain.inference import EncoderDecoderASR
asr_model = EncoderDecoderASR.from_hparams(
source="speechbrain/asr-conformer-transformerlm-librispeech",
savedir="pretrained_models/asr-transformer-transformerlm-librispeech"
)
asr_model.transcribe_file("example.wav")
Requires PyTorch and torchaudio; downloading pretrained models requires internet access and disk space for model storage.
Verify before relying
- Whether all 100+ pretrained models mentioned in the description are actively maintained and accessible.
- Performance benchmarks or accuracy metrics for the supported tasks relative to other frameworks.
- Whether EEG modality support is production-ready or still experimental.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.8.1) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 12 — hyperpyyaml, joblib, numpy, packaging, requests, scipy, sentencepiece, soundfile, torch, torchaudio, tqdm, huggingface_hub |
| Maintenance | actively maintained — 136 days since the last release |
| First released | |
| Downloads | 1,759,440/month — #3,586 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: speechbrain-1.1.0-py3-none-any.whl
Keywords: speech, audio, pytorch, deep-learning
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
pyctcdecodeDecodes CTC (Connectionist Temporal…
permissive · top 15,000 on PyPI
TTSTTS is a deep learning library for…
copyleft · top 15,000 on PyPI
nemo-toolkitnemo-toolkit provides a PyTorch framework for…
permissive · top 5,000 on PyPI
laion-clapExtracts learned audio and text embeddings…
permissive · top 15,000 on PyPI
pyannote-audioSpeaker diarization toolkit that identifies and…
unclear · top 5,000 on PyPI
panns-inferenceProvides pretrained neural network models for…
permissive · top 15,000 on PyPI
sherpa-onnx-coresherpa-onnx-core provides pre-built ONNX…
permissive · top 15,000 on PyPI
deepfilternetDeepFilterNet removes background noise from…
permissive · top 15,000 on PyPI
coqui-ttsCoqui TTS synthesizes speech from text using…
copyleft · top 15,000 on PyPI
ResemblyzerResemblyzer generates a 256-value embedding…
permissive · top 15,000 on PyPI