skillfed

speechbrain

All-in-one speech toolkit in pure Python and Pytorch

speechbrain v1.1.0 1.8M downloads/30d#3,586 on PyPI
Permissive license Apache-2.0 Active released

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 speechbrain

uv

uv add speechbrain

poetry

poetry add speechbrain

Installing 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

License :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3

Tags

speech recognition toolkitaudio processing pytorchconversational ai frameworkspeech enhancement modelsasr training recipesspeaker recognitionspeech separationpretrained speech models
speech-recognitionaudio-processingconversational-ai

More Artificial Intelligence packages

Further reading