End-to-End Speech Processing Toolkit
ESPnet is an end-to-end speech processing toolkit built on PyTorch. It covers speech recognition, text-to-speech, speech translation, speech enhancement, speaker diarization, spoken language understanding, singing voice synthesis, speech language models, and more — with Kaldi-style reproducible recipes from data preparation to evaluation, and hundreds of pretrained models on Hugging Face.
egs3/librispeech_100 at ESPnet2
parity, CI rebuilt on a prebuilt image (compute per run halved), OpenBEATs
pretraining, ten new recipes (ASR, TTS, SER, ST, audio SSL), Python 3.12-3.13.HybridOptim / HybridLRS).codec1 recipes, USES2 speech enhancement, IPAPack++ S2T recipes.Full history: Releases.
# Install PyTorch first: https://pytorch.org/get-started/locally/
pip install espnetpip install "espnet[all]" # optional dependencies
pip install git+https://github.com/espnet/espnet # latest masterdocker/ and the Docker docs.tools/installers.egs2/) or ESPnet3 (egs3/). See the ESPnet1 notice.| system/pytorch ver. | 2.11.0 | 2.13.0 | 2.14.0 |
|---|---|---|---|
| ubuntu/python3.12/pip | |||
| ubuntu/python3.13/pip | |||
| debian12/python3.12/conda | |||
| windows/python3.12/pip | |||
| macos/python3.12/pip | |||
| macos/python3.12/conda |
Run a pretrained model — any model from the ESPnet Hugging Face organization:
import soundfile as sf
from espnet2.bin.s2t_inference import Speech2Text
# OWSM v4: multilingual ASR, translation, and language ID in one model
s2t = Speech2Text.from_pretrained("espnet/owsm_v4_small_370M", lang_sym="<eng>", task_sym="<asr>")
speech, rate = sf.read("audio.wav") # 16 kHz
text, *_ = s2t(speech)[0]
print(text)Task-specific entry points follow the same pattern — espnet2.bin.asr_inference,
tts_inference, enh_inference, st_inference, spk_inference, and so on.
Train and evaluate a recipe — every corpus follows the same interface:
cd egs2/librispeech/asr1
./run.sh # full pipeline: data → features → training → scoring
./run.sh --stage 11 --stop_stage 13 # or run selected stagesNew to ESPnet? Start with egs2/mini_an4/asr1 — it runs end to end in minutes.
| Task | Template | Highlights | |
|---|---|---|---|
| ️ | ASR — speech recognition | asr1, asr2 |
Hybrid CTC/attention, Transducer, streaming, Conformer / E-Branchformer, Whisper, SSL front-ends |
| S2T — multilingual multitask | s2t1 |
OWSM: open Whisper-style models trained on public data | |
| TTS — text-to-speech | tts1, tts2 |
Tacotron 2, FastSpeech 2, VITS, JETS, multi-speaker / multilingual | |
| SVS — singing voice synthesis | svs1, svs2 |
VISinger 1/2, Xiaoice, DiffSinger; merged from Muskits | |
| SE/SS — enhancement & separation | enh1, enh_asr1 |
Unified encoder–separator–decoder, TasNet / DPRNN / beamformers, ASR-integrated | |
| ST / MT / S2ST — translation | st1, mt1, s2st1 |
End-to-end and cascaded speech translation, speech-to-speech translation | |
| SLU — language understanding | slu1 |
Intent + transcript multitasking, pretrained ASR/NLP encoders | |
| SPK / LID / DIAR — speaker & language | spk1, lid1, diar1 |
Speaker embeddings, verification, language ID, diarization | |
| SSL — self-supervised learning | ssl1, hubert1 |
HuBERT pretraining; S3PRL upstreams as front-ends | |
| SpeechLM — speech language models | speechlm1 |
Unified sequence modeling across speech and text tasks | |
| Codec — neural audio codecs | codec1 |
Discrete speech tokens for downstream tasks | |
| ➕ | More | uasr1, cls1, asvspoof1, lm1, sds1 |
Unsupervised ASR (EURO), audio classification, anti-spoofing, LM, spoken dialogue |
Each template ships a corpus-agnostic pipeline; see egs2/README.md for the full list
of 200+ corpora recipes.
run.sh per corpus, from download to scoring, with published results.| Demo | |
|---|---|
| Real-time ASR | |
| Real-time TTS | |
| Speech enhancement | |
| Streaming enhancement | |
| Hugging Face Spaces | ASR · TTS |
More notebooks: espnet/notebook.
Contributions, questions, and feature requests are all welcome — open an issue or a pull request. First time here? Read the contribution guide.
ASR recipes (WSJ, Switchboard, CHiME-4/5, Librispeech, TED, CSJ, AMI, HKUST, Voxforge, REVERB, Gigaspeech, etc.)TTS recipes in a similar manner to the ASR recipe (LJSpeech, LibriTTS, M-AILABS, etc.)ST recipes (Fisher-CallHome Spanish, Libri-trans, IWSLT'18, How2, Must-C, Mboshi-French, etc.)MT recipes (IWSLT'14, IWSLT'16, the above ST recipes etc.)SLU recipes (CATSLU-MAPS, FSC, Grabo, IEMOCAP, JDCINAL, SNIPS, SLURP, SWBD-DA, etc.)SE/SS recipes (DNS-IS2020, LibriMix, SMS-WSJ, VCTK-noisyreverb, WHAM!, WHAMR!, WSJ-2mix, etc.)Feature Proposal: Add FunASR as Recommended Production Inference Backend
speechlm: synchronize_batches() cannot pad a rank that ends up with zero batches
[NPU] synchronize_batches() is a silent no-op on non-CUDA accelerators
Let the inference object say what it can do, so the front ends stop naming models
Unified Text and Structured-Text Evaluation Toolkit for ESPnet3
The ESPnet3 fine-tuning tutorials no longer run against master
Missing pyopenjtalk Dependency in ESPnet2 TTS Colab Notebook (Breaks Japanese Synthesis)
Missing nltk Dataset in ESPnet2 TTS Colab Notebook (Causes Error in Synthesis Step)
Four defects in partially_AR_model.py surfaced by CodeRabbit on the line-ending PR
Docs site: 17 Dependabot alerts blocked behind a vuepress upgrade that OOMs the docs build