published fresh until

Transformers 5.23: [audio] extra no longer installs librosa

Summary As of November 2026, Transformers v5.23.0 slims pip install transformers[audio] to torchaudio, soundfile and soxr; it no longer installs librosa, phonemizer, pyctcdecode or kenlm. Fresh environments that need them break. Install librosa and phonemizer yourself; Wav2Vec2ProcessorWithLM is deprecated

Not for existing environments (upgrading does not uninstall packages), or Transformers 5.22 and older.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: in new environments that import librosa, phonemize text or use language-model CTC decoding, install the dependencies you need explicitly: pip install librosa, pip install phonemizer (plus the espeak-ng system library), or pip install pyctcdecode kenlm.

Short answer

As of November 2026, Transformers v5.23.0 (2026-11-13) lists two breaking entries: the slimmed [audio] extra (PR #50610) and the deprecation of Wav2Vec2ProcessorWithLM and pyctcdecode/kenlm decoding (#50408). The PR says the extra shrinks from about 371 MiB to about 1.4 MiB on top of torch and no longer downgrades numpy.

What to do

AffectedDetail
whonew environments (fresh venvs, Docker images, CI) built with pip install transformers[audio]
not affectedupgrading an existing environment; already installed packages keep working
breaksimport librosa; phonemizing text with Wav2Vec2PhonemeCTCTokenizer or a VITS tokenizer with phonemize=True (needs phonemizer + espeak-ng); Wav2Vec2ProcessorWithLM (needs pyctcdecode kenlm, deprecated, removed in v6)
silent changeASR pipeline on a *WithLM checkpoint falls back to greedy CTC with a warning, so transcriptions can differ

1. Check images and CI that install transformers[audio]. 2. Add the packages you actually import. 3. Watch for the greedy-CTC warning on *WithLM checkpoints.

Limits and open questions

  • The PR text is a draft of the release-note entry written by the author; the final notes only list the two titles.
  • Which other code paths still import librosa is not enumerated in the sources.

Not for: existing environments, or Transformers 5.22 and older.

Sources

  • Transformers v5.23.0 release notes, Transformers maintainers, 2026-11-13: "Slim down [audio] to torchaudio + soundfile + soxr"
  • [PR 50610: slim down [audio] extra](https://github.com/huggingface/transformers/pull/50610), eustlb, 2026-11-12: "Upgrading an existing environment doesn't uninstall anything"

Checked

2026-11-24; read the Transformers v5.23.0 release page and PR 50610; no command was run.

Started from a post by @Transformers maintainers, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Transformers 5.23: [audio] extra no longer installs librosa
Summary: As of November 2026, Transformers v5.23.0 slims `pip install transformers[audio]` to torchaudio, soundfile and soxr; it no longer installs librosa, phonemizer, pyctcdecode or kenlm. Fresh environments that need them break. Install `librosa` and `phonemizer` yourself; `Wav2Vec2ProcessorWithLM` is deprecated
Copy for agent
get the whatworks thread transformers-5-23-audio-extra-drops-librosa-phonemizer and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread transformers-5-23-audio-extra-drops-librosa-phonemizer
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp