Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
E

espnet

> 编程语言
Open source

End-to-End Speech Processing Toolkit

9.9K stars0 likes2 views
WebsiteGitHub

About

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.

What's new

  • ESPnet 202609 — ESPnet3 complete on 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.
Earlier releases
  • ESPnet 202604 — Docker-based CI, PyTorch 2.9.1 support, FastSpeech2 inference ~1.9x faster at batch 8, new recipes (Kinyarwanda, Emilia, kosp2e).
  • ESPnet 202511 — parallel-processing primitives, refactored inference and evaluation pipeline, expanded SpeechLM support.
  • ESPnet 202509 — Python 3.9-3.13, Debian 12 CI, the LID subsystem completed, multi-optimizer training (HybridOptim / HybridLRS).
  • ESPnet 202506 — ESPnet3 groundwork (data organizer, trainer, model), LID training and task setup, codec1 recipes, USES2 speech enhancement, IPAPack++ S2T recipes.
  • ESPnet 202503 — PyTorch Lightning trainer support, Hugging Face front-end, scaled dot-product attention, ML-SUPERB 2024 recipe.

Full history: Releases.

Install

bash
# Install PyTorch first: https://pytorch.org/get-started/locally/
pip install espnet
Other installation options
bash
pip install "espnet[all]"                       # optional dependencies
pip install git+https://github.com/espnet/espnet  # latest master
  • Full setup (recipes, DNN training, Kaldi-style tooling): see the installation guide.
  • Docker: see docker/ and the Docker docs.
  • Task-specific tools live in tools/installers.
  • ESPnet1 is no longer supported — use ESPnet2 (egs2/) or ESPnet3 (egs3/). See the ESPnet1 notice.
Tested environments (CI status)
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

Quick start

Run a pretrained model — any model from the ESPnet Hugging Face organization:

python
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:

bash
cd egs2/librispeech/asr1
./run.sh                      # full pipeline: data → features → training → scoring
./run.sh --stage 11 --stop_stage 13   # or run selected stages

New to ESPnet? Start with egs2/mini_an4/asr1 — it runs end to end in minutes.

Supported tasks

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.

Why ESPnet

  • Reproducible — one run.sh per corpus, from download to scoring, with published results.
  • Unified — the same recipe structure, config format, and trainer across every task above.
  • Scalable — DDP, multi-node training, Slurm/MPI, DeepSpeed, sharded training, on-the-fly feature extraction.
  • Open — hundreds of pretrained models and demos on Hugging Face, plus W&B and TensorBoard logging.

Demos

Demo
Real-time ASR
Real-time TTS
Speech enhancement
Streaming enhancement
Hugging Face Spaces ASR · TTS

More notebooks: espnet/notebook.

Learn

  • Documentation · ESPnet2 tutorial
  • Course tutorials at CMU: usage · adding new models/tasks (materials)
  • Interspeech 2019 tutorial

Contributing

Contributions, questions, and feature requests are all welcome — open an issue or a pull request. First time here? Read the contribution guide.

Details

Full feature list by task

Kaldi-style complete recipe

  • Support numbers of ASR recipes (WSJ, Switchboard, CHiME-4/5, Librispeech, TED, CSJ, AMI, HKUST, Voxforge, REVERB, Gigaspeech, etc.)
  • Support numbers of TTS recipes in a similar manner to the ASR recipe (LJSpeech, LibriTTS, M-AILABS, etc.)
  • Support numbers of ST recipes (Fisher-CallHome Spanish, Libri-trans, IWSLT'18, How2, Must-C, Mboshi-French, etc.)
  • Support numbers of MT recipes (IWSLT'14, IWSLT'16, the above ST recipes etc.)
  • Support numbers of SLU recipes (CATSLU-MAPS, FSC, Grabo, IEMOCAP, JDCINAL, SNIPS, SLURP, SWBD-DA, etc.)
  • Support numbers of SE/SS recipes (DNS-IS2020, LibriMix, SMS-WSJ, VCTK-noisyreverb, WHAM!, WHAMR!, WSJ-2mix, etc.)
  • Support voice conversion recipe (VCC2020 baseline)
  • Support speaker diarization recipe (mini_librispeech, librimix)
  • Support singing voice synthesis recipe (ofuton_p_utagoe_db, opencpop, m4singer, etc.)

ASR: Automatic Speech Recognition

  • State-of-the-art performance in several ASR benchmarks (comparable/superior to hybrid DNN/HMM and CTC)
  • Hybrid CTC/attention based end-to-end ASR
    • Fast/accurate training with CTC/attention multitask training
    • CTC/attention joint decoding to boost monotonic alignment decoding
    • Encoder: VGG-like CNN + BiRNN (LSTM/GRU), sub-sampling BiRNN (LSTM/GRU), Transformer, Conformer, Branchformer, or E-Branchformer
    • Decoder: RNN (LSTM/GRU), Transformer, or S4
  • Attention: Flash Attention, Dot product, location-aware attention, variants of multi-head
  • Incorporate RNNLM/LSTMLM/TransformerLM/N-gram trained only with text data
  • Batch GPU decoding
  • Data augmentation
  • Transducer based end-to-end ASR
    • Architecture:
      • Custom encoder supporting RNNs, Conformer, Branchformer (w/ variants), 1D Conv / TDNN.
      • Decoder w/ parameters shared across blocks supporting RNN, stateless w/ 1D Conv, MEGA, and RWKV.
      • Pre-encoder: VGG2L or Conv2D available.
    • Search algorithms:
      • Greedy search constrained to one emission by timestep.
      • Default beam search algorithm [[Graves, 2012]](https://arxiv.o

Issues· 104 open

View all issuesOpen on GitHub
  • #6465

    Feature Proposal: Add FunASR as Recommended Production Inference Backend

    StaleASRFeature requestUpdated Sep 27, 2026
  • #6812

    speechlm: synchronize_batches() cannot pad a rank that ends up with zero batches

    Updated Sep 26, 2026
  • #6807

    [NPU] synchronize_batches() is a silent no-op on non-CUDA accelerators

    Updated Sep 25, 2026
  • #6788

    Let the inference object say what it can do, so the front ends stop naming models

    Updated Sep 21, 2026
  • #6760

    Unified Text and Structured-Text Evaluation Toolkit for ESPnet3

    Feature requestESPnet3Updated Sep 21, 2026
  • #6724

    The ESPnet3 fine-tuning tutorials no longer run against master

    Updated Sep 20, 2026
  • #6063

    Missing pyopenjtalk Dependency in ESPnet2 TTS Colab Notebook (Breaks Japanese Synthesis)

    BugUpdated Sep 20, 2026
  • #6062

    Missing nltk Dataset in ESPnet2 TTS Colab Notebook (Causes Error in Synthesis Step)

    BugTTSUpdated Sep 20, 2026
  • #6669

    Four defects in partially_AR_model.py surfaced by CodeRabbit on the line-ending PR

    Updated Sep 14, 2026
  • #6644

    Docs site: 17 Dependabot alerts blocked behind a vuepress upgrade that OOMs the docs build

    Help wantedDocumentationdependenciesUpdated Sep 11, 2026

> Tags

Pythonchainerdeep-learningend-to-endkaldi

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言