What changed in SpeechBrain from 0 to 1
7 releases numbered after v0.5.16 up to and including v1.1.2, stable releases only. v0.5.16 and v1.1.2 are the newest stable releases of 0 and 1 we track; this page follows them as new ones ship.
- 1 mentions breaking changes
117 changes across 7 releases
- FocalCodec-Stream recipe added (ICASSP 2026)
- Feature caching that saves extracted features such as wav2vec embeddings to disk and loads them on the fly, skipping recomputation
- SpeechLLM recipe for ASR on LibriSpeech using pre-computed embeddings
- SpeechLLM and Conformer recipe for speech translation on CoVoST
- Streaming recipe for BestRQ
- Librilight data preparation for SpeechBrain SSL
- Alignment with CTC ASR models powered by k2
- FocalCodec model support
- SENSE models support
- Per-key padding configuration in PaddedBatch
- Compression, filename, closing and loading options for feature caching
- Conformer ASR trained on the People's Speech dataset (30,000 hours), with code from Samsung AI Center Cambridge
- Audio and Music self-supervised learning (SSL) support
- New audio tokenizers
- Libriheavy recipe, with code from SAIC-Cambridge
- Conformer recipe for LargeScaleASR, with code from Samsung AI Center Cambridge
- Rotary Position Embedding (RoPE) for ASR, with code from Samsung Cambridge
- Voice analysis functions
- Support for Adapters, with a new tutorial on neural network adapters
- BEST-RQ, with a recipe for LibriSpeech
- GigaSpeech recipes for ASR, including a Conformer RNN-T and WavLM CTC
- New tutorial on metrics for speech recognition
- New tutorial on neural network adapters for faster low-memory fine-tuning
- New tutorial on streaming speech recognition with Conformers
- Layer dropout support for TransformerASR
- Sign flip augmentation for ASR, EEG, and potentially other tasks
- seed_everything for improved reproducibility, along with improved DDP handling for seeding
- Quirks mechanism to centralize overridden PyTorch defaults and workarounds, with proper logging
- fetch_strategy option to choose whether a locally found file is copied, symlinked, or not linked into savedir
- allow_network parameter for fetch, defaulting to True, which when disabled fails if the file is not available locally
- allow_updates parameter for fetch, defaulting to True, which queries HuggingFace to update model files or switch revisions even when a local path is present
- New metrics added, mostly targeted at speech recognition
- VoxPopuli transducer recipe
- FocalNets support for ESC50 recipes
- Single-sample inference for interpretation in ESC50 recipes
- Speechtokenizer integration
- Support for HiFi-GAN to work with new SSL Discrete Tokens, with bitrate-scalable training on LJSpeech and LibriTTS
- Recipe for Listenable Maps for Audio Classifiers
- Support for any transformer model from HuggingFace, including LLMs, through a generalized HuggingFace interface
- Streamable conformer transducers for speech recognition
- Integration with K2 for search based on Finite State Transducers
- CTC decoding and n-gram rescoring
- New CTC/joint attention Beam Search interface
- Native support for fp32, fp16, and bf16 precisions, mixed precision, compilation, multiple optimizers, and multi-GPU training with torchrun in the Brain Class
- New data augmentation techniques: CodecAugment, RandomShift (Time), RandomShift (Frequency), DoClip, RandAmp, ChannelDrop, ChannelSwap, CutCat, and DropBitResolution
- Augmenter interface for customizing and combining augmentations during training
- Support for pure CTC training and decoding, batch and GPU decoding, partial or full candidate scoring, and N-best hypothesis output with neural LM rescorers in the beam search
- New benchmarks repository covering speech self-supervised models, continual learning, and EEG processing
- Minimum version of the torch and torchaudio dependencies is now 2.7.1 for better device management
- Use parametrizations.weight_norm to silence a deprecation warning
- Clarified the channelwise behavior of CumulativeLayerNorm in the documentation
- Documentation markdown files added for agentic models
- Checkpoint meta files are now loaded with the safeloader
- Reforged LLaMA lobe using code from Samsung AI Center Cambridge
- Replaced torchaudio I/O with a soundfile-based audio_io wrapper
- Adapted transducer greedy decoding
- Removed CTC CUDA and moved transducer loss into integrations
- fetch and Pretrained overhauled to greatly reduce the use of symlinks out of the box
- All tutorials migrated to the SpeechBrain repository and merged into the main docs, with outdated information, broken links, and other documentation issues updated
- TensorFloat32 is now enabled by default when available
- The savedir argument in from_hparams and related fetching code is now optional and defaults to None, so local and HuggingFace files no longer require a target directory
- Inference interfaces no longer pollute the working directory with symlinks by default when loading audio files
- Advertised Python support extended from 3.9-3.11 to 3.8-3.12, with improved testing for that range
- Major improvements to Whisper integration, including support for various tasks, fine-tuning fixes, and performance improvements
- Improved printing of model parameter information
- CommonVoice transducer and transformer recipes upgraded with various improvements
- ESC50 recipes refactored
- Improvements and refactoring to SSL Discrete Tokens
- Module structure refactored to use lazy-loading where possible, reducing import times and circular imports
- HuggingFace interfaces refactored from model-specific classes (Whisper, HuBERT, WavLM, wav2vec 2.0) to a general interface
- BeamSearch refactored so that scoring and search are separated into distinct functions
- Brain Class fit_batch method refactored to minimize the need for overrides in training scripts
- Inference interfaces reorganized from a single file (speechbrain/pretrained/interfaces.py) into smaller libraries under speechbrain/inference
- Compatibility with HuggingFace models including GPT2 and Llama2 enhanced
- A regression in training time caused by the speed perturb augmentation was fixed
- A packaging regression that added several irrelevant modules to the PyPI artifacts was fixed
- transformer: make_transformer_src_tgt_masks now enforces max_len
- fetch() no longer returns a missing path when using COPY_SKIP_CACHE with save_filename
- get_all_files no longer drops files listed after an exclude_and match
- TextEncoder.limited_labelset_from_iterable now respects n_most_common and min_count
- Incorrect parameter description in load_data_json corrected
- mel_spectogram name corrected to mel_spectrogram
- Windows-incompatible inspect file guard in LazyModule fixed
- Decoder input tensor dimension error fixed
- Hooks added to ensure saving of kmeans model works correctly
- Device handling for MPS fixed
- Incorrect documented defaults for HF wrapper freeze and output_norm corrected
- Closure variable bug in classification_error fixed
- LoRA adapter support for convolutional layers fixed
- Float columns no longer converted to strings in from_csv
- LengthsCapable containers no longer drop lengths for wav_lens-named layers
- TransformerST bug with ASR masks fixed
- Fixed broken links caused by the voxlingua107 dataset location change
- Fixed self.device handling for AMP
- Fixed dropout behaviour at inference
- Fixed input normalization and global normalization variance calculation
- Fixed argument passed to rec_loss in (Variational)AutoencoderLoss
- Fixed bug in ModuleList.insert
- Performance of VAD inference improved
- Various issues with DDP handling fixed
- Broken augmentation integration tests fixed
- Error when processing newer CommonVoice fixed
- Concat bug in augmentation fixed
- Incorrectly introduced EOS removed from G2P inference
- Backwards compatibility restored for old speechbrain.pretrained imports that were broken by the v1.0 refactor
- Errors with ctc_segmentation
- Fixes and refactors for RelPosEncXL
- Input normalization incorrectly applying in-place to user inputs in some cases
- DDP fixes
- Backwards compatibility with older torchaudio versions when not using streaming
- Separation and Enhancement recipes behavior when NaN is encountered
- Overly aggressive SpecAugment in the LibriSpeech transducer recipe
- Double file conversion in CommonVoice data preparation
- SpectrogramDrop errors in some cases
- Windows install issues when using the --editable flag
- Fixes and improvements for quaternion networks
- AISHELL models, and added a backwards compatibility warning for causal in TransformerASR
Original release notes, newest first
The list above is our reading of these notes; the originals from SpeechBrain are here, one fold per release.
v1.1.2
Notable changes
- Minimum version of the
torchandtorchaudiodependencies are now2.7.1for better device management, see #3099 and #3080 - A regression in training time due to the speed perturb augmentation was fixed (gianfranco) #3100
- A regression in packaging added several irrelevant modules to the pypi artifacts, this has been fixed (Kayvan Zahiri) #3088
Bug Fixes
- use parametrizations.weight_norm to silence deprecation warning (li-lizhe) #3087
- transformer: enforce max_len in make_transformer_src_tgt_masks (Luchang Jiang) #3086
- Fix fetch() returning a missing path with COPY_SKIP_CACHE and save_filename (sungbin1015) #3093
- Fix get_all_files dropping files listed after an exclude_and match (sungbin1015) #3101
- Fix TextEncoder.limited_labelset_from_iterable ignoring n_most_common and min_count (sungbin1015) #3095
Documentation
- clarify channelwise behavior of CumulativeLayerNorm #3105
New Contributors
- @li-lizhe made their first contribution in https://github.com/speechbrain/speechbrain/pull/3080
- @sungbin1015 made their first contribution in https://github.com/speechbrain/speechbrain/pull/3093
- @Kayvan-Zahiri made their first contribution in https://github.com/speechbrain/speechbrain/pull/3088
- @FinalSunFlower made their first contribution in https://github.com/speechbrain/speechbrain/pull/3086
- @j45856021-dev made their first contribution in https://github.com/speechbrain/speechbrain/pull/3105
Full Changelog: https://github.com/speechbrain/speechbrain/compare/v1.1.1...v1.1.2
v1.1.1
Recipes
Documentation
- fix incorrect parameter description in load_data_json (#3053) #3053 (Bimochan raj kunwar)
- [830d601]: add markdown files for agentic models (#3048) (Adel Moumen) #3048
Security
Bug Fixes
- mel_spectogram should be mel_spectrogram (#3063) #3063 (Access)
- Windows-incompatible python's inspect file guard in LazyModule (#3065) #3065 (Need-an-AwP)
- Decoder input tensor dimension error (#3049) #3049 (Paras)
- [9c826ef]: Add hooks to ensure saving of kmeans model works correctly (#3047) (Peter Plantinga) #3047
- [8a89eba]: Fix device handling for MPS (#3055) (flexthink) #3055
- [d0d15bb]: Fix incorrect documented defaults for HF wrapper freeze/output_norm (#3060) (#3062) (Deeksha Manjunath) #3062
- [e5cb1f6]: Fix #3033: Fix closure variable bug in classification_error (#3061) (Nandana Dileep) #3061
- [841e205]: Fix LoRA adapter support for convolutional layers (fixes #3056) (#3064) (oly) #3064
- [dff42ee]: fix float columns being converted to string in from_csv (#3043) (Novikov Kirill) #3043
- [d9ee175]: Fix LengthsCapable containers dropping lengths for wav_lens-named layers (fixes #2986) (#3068) (oly) #3068
- [825d024]: Fixed TransformerST bug with ASR masks (#2984) (Filip Gębala) #2984
v1.1.0
This major release extends SpeechBrain's support for SpeechLLMs and introduces several new features, recipes, and improvements.
Highlights
- Feature Caching — Save extracted features (e.g. wav2vec embeddings) to disk and load them on the fly, skipping recomputation. This powers our first ASR SpeechLLM recipe on LibriSpeech, enabling LLM-based training with pre-computed embeddings.
- New Recipes — SpeechLLM for ASR and translation, streaming SSL, FocalCodec, and SENSE models.
Along with internal improvements and bug fixes. Here follows a changelog of the main changes (omitting some minor bugfixes):
What's Changed
- Reforging LLaMA lobe (code from Samsung AI Center-Cambridge) by @TParcollet in https://github.com/speechbrain/speechbrain/pull/2850
- Streaming recipe for BestRQ by @Chaanks in https://github.com/speechbrain/speechbrain/pull/2790
- Librilight data preparation for SpeechBrain SSL (code from Samsung AI Center Cambridge) by @shucongzhang in https://github.com/speechbrain/speechbrain/pull/2765
- Alignment with CTC ASR models powered by k2. by @ZhaoZeyu1995 in https://github.com/speechbrain/speechbrain/pull/2772
- SpeechLLM (with LLaMA) and Conformer recipe for speech translation on CoVoST (Code from Samsung AI Center Cambridge) by @TParcollet in https://github.com/speechbrain/speechbrain/pull/2865
- Feature caching proposal: CachedDynamicItem by @pplantinga in https://github.com/speechbrain/speechbrain/pull/2985
- Adapting transducer greedy decoding by @younessdkhissi in https://github.com/speechbrain/speechbrain/pull/2975
- Replace torchaudio I/O with soundfile-based audio_io wrapper by @Copilot in https://github.com/speechbrain/speechbrain/pull/2989
- FocalCodec [NeurIPS 2025] by @lucadellalib in https://github.com/speechbrain/speechbrain/pull/3000
- Caching: add compression + filename + closing/loading by @Adel-Moumen in https://github.com/speechbrain/speechbrain/pull/3005
- Implement per-key padding configuration in PaddedBatch by @Adel-Moumen in https://github.com/speechbrain/speechbrain/pull/3008
- SpeechLLM LibriSpeech recipe by @Adel-Moumen in https://github.com/speechbrain/speechbrain/pull/2885
- Remove CTC CUDA + Move transducer loss in integrations by @Adel-Moumen in https://github.com/speechbrain/speechbrain/pull/3028
- Adding SENSE models by @MaryemBouziane in https://github.com/speechbrain/speechbrain/pull/2998
New Contributors
- @emmanuel-ferdman made their first contribution in https://github.com/speechbrain/speechbrain/pull/2900
- @ofiryaish made their first contribution in https://github.com/speechbrain/speechbrain/pull/2871
- @omidiu made their first contribution in https://github.com/speechbrain/speechbrain/pull/2923
- @svecjan made their first contribution in https://github.com/speechbrain/speechbrain/pull/2934
- @nouranali made their first contribution in https://github.com/speechbrain/speechbrain/pull/2855
- @OscarFree made their first contribution in https://github.com/speechbrain/speechbrain/pull/2988
- @younessdkhissi made their first contribution in https://github.com/speechbrain/speechbrain/pull/2975
- @jordanozang made their first contribution in https://github.com/speechbrain/speechbrain/pull/2982
- @jrochdi made their first contribution in https://github.com/speechbrain/speechbrain/pull/2947
- @seohyunjun made their first contribution in https://github.com/speechbrain/speechbrain/pull/2996
- @Daheer made their first contribution in https://github.com/speechbrain/speechbrain/pull/3022
- @raotnameh made their first contribution in https://github.com/speechbrain/speechbrain/pull/2617
- @Mr-Neutr0n made their first contribution in https://github.com/speechbrain/speechbrain/pull/3029
- @georgesabr made their first contribution in https://github.com/speechbrain/speechbrain/pull/3038
- @MaryemBouziane made their first contribution in https://github.com/speechbrain/speechbrain/pull/2998
Full Changelog: https://github.com/speechbrain/speechbrain/compare/v1.0.3...v1.1.0
What's Changed
- Fix broken links due to change in voxlingua107 location by @pplantinga in https://github.com/speechbrain/speechbrain/pull/2877
- Reforging LLaMA lobe (code from Samsung AI Center-Cambridge) by @TParcollet in https://github.com/speechbrain/speechbrain/pull/2850
- Attempt to fix
self.devicefor AMP by @Adel-Moumen in https://github.com/speechbrain/speechbrain/pull/2882 - fix convolutions docstrings by @gfdb in https://github.com/speechbrain/speechbrain/pull/2883
- Attempt fix for input_norm test by @pplantinga in https://github.com/speechbrain/speechbrain/pull/2887
- Fix dropout at inference by @Adel-Moumen in https://github.com/speechbrain/speechbrain/pull/2889
- Avoid running tests on draft PRs by @pplantinga in https://github.com/speechbrain/speechbrain/pull/2890
- Fix input normalization and global normalization variance calculation by @pplantinga in https://github.com/speechbrain/speechbrain/pull/2835
- Bump version of pyroomacoustics for recipes/DNS/enhancement by @rogiervd in https://github.com/speechbrain/speechbrain/pull/2899
- Fix argument to rec_loss in (Variational)AutoencoderLoss (from Samsung AI Center Cambridge) by @rogiervd in https://github.com/speechbrain/speechbrain/pull/2902
- Ensure that x is not unbound in WordEmbeddingEncoder (from Samsung, AI Center, Cambridge) by @rogiervd in https://github.com/speechbrain/speechbrain/pull/2905
- Fix bug in ModuleList.insert (from Samsung, AI Center, Cambridge) by @rogiervd in https://github.com/speechbrain/speechbrain/pull/2903
- Fix bug constructing ValueError in Conv2d (from Samsung, AI Center, Cambridge) by @rogiervd in https://github.com/speechbrain/speechbrain/pull/2904
- Make types correct (from Samsung, AI Center, Cambridge) by @rogiervd in https://github.com/speechbrain/speechbrain/pull/2912
- Use correct signature for torch.tensor.type() (from Samsung, AI Center, Cambridge) by @rogiervd in https://github.com/speechbrain/speechbrain/pull/2910
- Update handling of dtype in read_pkl to torch.Tensor (from Samsung, AI Center, Cambridge) by @rogiervd in https://github.com/speechbrain/speechbrain/pull/2907
- Make arpa_to_fst work when arguments are str (from Samsung, AI Center, Cambridge) by @rogiervd in https://github.com/speechbrain/speechbrain/pull/2919
- Make f_max integer (from Samsung, AI Center, Cambridge) by @rogiervd in https://github.com/speechbrain/speechbrain/pull/2918
- Account for all combinations of arguments in IterativeCSVWriter.write (from Samsung, AI Center, Cambridge) by @rogiervd in https://github.com/speechbrain/speechbrain/pull/2916
- Migrate to modern Python Logger API by @emmanuel-ferdman in https://github.com/speechbrain/speechbrain/pull/2900
- Do not forget to raise ValueError (from Samsung, AI Center, Cambridge) by @rogiervd in https://github.com/speechbrain/speechbrain/pull/2909
- Replace axis= by dim= for calls to Torch (from Samsung, AI Center, Cambridge) by @rogiervd in https://github.com/speechbrain/speechbrain/pull/2913
- Remove unused value (from Samsung, AI Center, Cambridge) by @rogiervd in https://github.com/speechbrain/speechbrain/pull/2914
- Make Scores.repr actually return something by @rogiervd in https://github.com/speechbrain/speechbrain/pull/2897
- Remove deprecated abstractproperty (from Samsung, AI Center, Cambridge) by @rogiervd in https://github.com/speechbrain/speechbrain/pull/2915
- Use "cls" instead of "self" in classmethod by @rogiervd in https://github.com/speechbrain/speechbrain/pull/2908
- Change location from which to import tqdm by @rogiervd in https://github.com/speechbrain/speechbrain/pull/2921
- Fix type annotations (from Samsung, AI Center, Cambridge) by @rogiervd in https://github.com/speechbrain/speechbrain/pull/2911
- Add test for various length mask functions (code from Samsung, AI Center, Cambridge) by @rogiervd in https://github.com/speechbrain/speechbrain/pull/2894
- Change test for make_padding_mask to expose mistake by @rogiervd in https://github.com/speechbrain/speechbrain/pull/2895
- fix bug in reverberate with rescale_amp by @ofiryaish in https://github.com/speechbrain/speechbrain/pull/2871
- docs: Fix contributing.md by @omidiu in https://github.com/speechbrain/speechbrain/pull/2923
- Renaming largescale ASR to the Loquacious Set by @TParcollet in https://github.com/speechbrain/speechbrain/pull/2928
- Move files with optional dependencies to integrations folder by @pplantinga in https://github.com/speechbrain/speechbrain/pull/2782
- Streaming recipe for BestRQ by @Chaanks in https://github.com/speechbrain/speechbrain/pull/2790
- Librilight data preparation for SpeechBrain SSL (code from Samsung AI Center Cambridge) by @shucongzhang in https://github.com/speechbrain/speechbrain/pull/2765
- Re-ran tutorial to remove errors by @pplantinga in https://github.com/speechbrain/speechbrain/pull/2925
- Create
FetchConfigfor standardizing use offetchby @pplantinga in https://github.com/speechbrain/speechbrain/pull/2828 - Fix issue 'GlobalNorm with DDP' by @svecjan in https://github.com/speechbrain/speechbrain/pull/2934
- Bump torch from 2.6.0 to 2.7.1 in /docs by @dependabot[bot] in https://github.com/speechbrain/speechbrain/pull/2939
- Solves #2846 Refactor run_opts into a @dataclass by @nouranali in https://github.com/speechbrain/speechbrain/pull/2855
- Make run_on_main and main_process_only return the result to all proce… by @rogiervd in https://github.com/speechbrain/speechbrain/pull/2943
- Saveable Generator: initial import by @flexthink in https://github.com/speechbrain/speechbrain/pull/2937
- Alignment with CTC ASR models powered by k2. by @ZhaoZeyu1995 in https://github.com/speechbrain/speechbrain/pull/2772
- Fix forced alignment tutorial link to google colab by @pplantinga in https://github.com/speechbrain/speechbrain/pull/2951
- Fix missing defaults in run options by @pplantinga in https://github.com/speechbrain/speechbrain/pull/2952
- Add recipe installation instructions to installation.md by @pplantinga in https://github.com/speechbrain/speechbrain/pull/2948
- SpeechLLM (with LLaMA) and Conformer recipe for speech translation on CoVoST (Code from Samsung AI Center Cambridge) by @TParcollet in https://github.com/speechbrain/speechbrain/pull/2865
- Use epoch loop loader for transfer to correctly handle end_of_epoch by @pplantinga in https://github.com/speechbrain/speechbrain/pull/2965
- fix unnecessary pos_emb for RoPE by @shucongzhang in https://github.com/speechbrain/speechbrain/pull/2963
- Adopt pyproject and move to Ruff by @TParcollet in https://github.com/speechbrain/speechbrain/pull/2946
- Update version constraints for torch and torchaudio by @Adel-Moumen in https://github.com/speechbrain/speechbrain/pull/2978
- Bump torch from 2.7.1 to 2.8.0 in /docs by @dependabot[bot] in https://github.com/speechbrain/speechbrain/pull/2976
- Fix #2973 bug with period in path by @pplantinga in https://github.com/speechbrain/speechbrain/pull/2974
- Bandaid fix for torchaudio 2.9+ compatibility by @OscarFree in https://github.com/speechbrain/speechbrain/pull/2988
- Feature caching proposal: CachedDynamicItem by @pplantinga in https://github.com/speechbrain/speechbrain/pull/2985
- Adapting transducer greedy decoding by @younessdkhissi in https://github.com/speechbrain/speechbrain/pull/2975
- Fix for Tracing ECAPA-TDNN Embedding Model by @jordanozang in https://github.com/speechbrain/speechbrain/pull/2982
- fix speed perturb inversion by @gfdb in https://github.com/speechbrain/speechbrain/pull/2994
- Add functions for running code once per node by @pplantinga in https://github.com/speechbrain/speechbrain/pull/2992
- Replace torchaudio I/O with soundfile-based audio_io wrapper by @Copilot in https://github.com/speechbrain/speechbrain/pull/2989
- SGMSE Voicebank Speech Enhancement Recipe by @jrochdi in https://github.com/speechbrain/speechbrain/pull/2947
- Update versions of python due to 3.9 EOL by @pplantinga in https://github.com/speechbrain/speechbrain/pull/3001
- fix issue with --arg value and --arg=value by @Adel-Moumen in https://github.com/speechbrain/speechbrain/pull/2999
- Rename FetchConfig.use_auth_token to token and pass token to HF hub by @seohyunjun in https://github.com/speechbrain/speechbrain/pull/2996
- FocalCodec [NeurIPS 2025] by @lucadellalib in https://github.com/speechbrain/speechbrain/pull/3000
- Caching: add compression + filename + closing/loading by @Adel-Moumen in https://github.com/speechbrain/speechbrain/pull/3005
- HDF5 integration not loading/caching etc. by @Adel-Moumen in https://github.com/speechbrain/speechbrain/pull/3007
- Fix local_rank when using single process by @Adel-Moumen in https://github.com/speechbrain/speechbrain/pull/3006
- Implement per-key padding configuration in PaddedBatch by @Adel-Moumen in https://github.com/speechbrain/speechbrain/pull/3008
- Add init files so pages get picked up for docs by @pplantinga in https://github.com/speechbrain/speechbrain/pull/3011
- ksponspeech remove by @Adel-Moumen in https://github.com/speechbrain/speechbrain/pull/3013
- Replace deprecated torch.cuda.amp.custom_fwd with torch.amp.custom_fw by @omidiu in https://github.com/speechbrain/speechbrain/pull/2922
- Fix duplicate mic position in beamforming tutorial by @Adel-Moumen in https://github.com/speechbrain/speechbrain/pull/3019
- Fix text_file assignment - SentencePiece by @pplantinga in https://github.com/speechbrain/speechbrain/pull/3016
- Update CI requirements by @Adel-Moumen in https://github.com/speechbrain/speechbrain/pull/3023
- add tests + doc + fix recipes + new get_available_cpu_count fn by @Adel-Moumen in https://github.com/speechbrain/speechbrain/pull/3025
- Fix typo in literature reference by @Daheer in https://github.com/speechbrain/speechbrain/pull/3022
- Update scorer.py by @raotnameh in https://github.com/speechbrain/speechbrain/pull/2617
- SpeechLLM LibriSpeech recipe by @Adel-Moumen in https://github.com/speechbrain/speechbrain/pull/2885
- Remove CTC CUDA + Move transducer loss in integrations by @Adel-Moumen in https://github.com/speechbrain/speechbrain/pull/3028
- Add missing mean_stat_per_model method to StatObject_SB by @Mr-Neutr0n in https://github.com/speechbrain/speechbrain/pull/3029
- support torch>=2.9.0 by @eschmidbauer in https://github.com/speechbrain/speechbrain/pull/3032
- Fix mutable default arguments in function signatures by @Mr-Neutr0n in https://github.com/speechbrain/speechbrain/pull/3034
- Fix author name typo: Abous-Rjeili → Abou-Rjeili by @georgesabr in https://github.com/speechbrain/speechbrain/pull/3038
- Adding SENSE models by @MaryemBouziane in https://github.com/speechbrain/speechbrain/pull/2998
- Recipe tests new release by @Adel-Moumen in https://github.com/speechbrain/speechbrain/pull/3042
- v1.0.4 Dev -> Main by @Adel-Moumen in https://github.com/speechbrain/speechbrain/pull/3044
New Contributors
- @emmanuel-ferdman made their first contribution in https://github.com/speechbrain/speechbrain/pull/2900
- @ofiryaish made their first contribution in https://github.com/speechbrain/speechbrain/pull/2871
- @omidiu made their first contribution in https://github.com/speechbrain/speechbrain/pull/2923
- @svecjan made their first contribution in https://github.com/speechbrain/speechbrain/pull/2934
- @nouranali made their first contribution in https://github.com/speechbrain/speechbrain/pull/2855
- @OscarFree made their first contribution in https://github.com/speechbrain/speechbrain/pull/2988
- @younessdkhissi made their first contribution in https://github.com/speechbrain/speechbrain/pull/2975
- @jordanozang made their first contribution in https://github.com/speechbrain/speechbrain/pull/2982
- @jrochdi made their first contribution in https://github.com/speechbrain/speechbrain/pull/2947
- @seohyunjun made their first contribution in https://github.com/speechbrain/speechbrain/pull/2996
- @Daheer made their first contribution in https://github.com/speechbrain/speechbrain/pull/3022
- @raotnameh made their first contribution in https://github.com/speechbrain/speechbrain/pull/2617
- @Mr-Neutr0n made their first contribution in https://github.com/speechbrain/speechbrain/pull/3029
- @georgesabr made their first contribution in https://github.com/speechbrain/speechbrain/pull/3038
- @MaryemBouziane made their first contribution in https://github.com/speechbrain/speechbrain/pull/2998
Full Changelog: https://github.com/speechbrain/speechbrain/compare/v1.0.3...v1.1.0
v1.0.3
Major Changes
- Add People's Speech (30,000 hours) Conformer ASR (Code from Samsung AI Center Cambridge) by @TParcollet in https://github.com/speechbrain/speechbrain/pull/2767
- Audio and Music SSL by @poonehmousavi in https://github.com/speechbrain/speechbrain/pull/2755
- Add new Audio Tokenziers by @poonehmousavi in https://github.com/speechbrain/speechbrain/pull/2751
- Libriheavy (Code from SAIC-Cambridge) by @shucongzhang in https://github.com/speechbrain/speechbrain/pull/2781
- Conformer recipe for LargeScaleASR (code from Samsung AI Center Cambridge) by @TParcollet in https://github.com/speechbrain/speechbrain/pull/2806
- Rotary Position Embedding (RoPE) for ASR (code from Samsung Cambridge) by @shucongzhang in https://github.com/speechbrain/speechbrain/pull/2799
- Voice analysis functions by @pplantinga in https://github.com/speechbrain/speechbrain/pull/2689
New Contributors
- @rogiervd made their first contribution in https://github.com/speechbrain/speechbrain/pull/2734
- @benniekiss made their first contribution in https://github.com/speechbrain/speechbrain/pull/2746
- @mirofedurco made their first contribution in https://github.com/speechbrain/speechbrain/pull/2762
- @kit1980 made their first contribution in https://github.com/speechbrain/speechbrain/pull/2797
- @IliasMAOUDJ made their first contribution in https://github.com/speechbrain/speechbrain/pull/2574
Full Changelog: https://github.com/speechbrain/speechbrain/compare/v1.0.2...v1.0.3
v1.0.2
This is a minor update which includes some new features and recipes, internal improvements, bugfixes and improved tutorials.
Here follows a changelog of the main changes (omitting some minor bugfixes):
Notable changes
- Added support for Adapters, see new tutorial (#2563)
- Added BEST-RQ with a recipe for LibriSpeech (#2309)
- Added GigaSpeech recipes for ASR, with a Conformer RNN-T and WavLM CTC (#2421)
- Overhauled
fetchandPretrained, greatly reducing the use of symlinks out of the box as much as possible (see down below) - Migrated all tutorials to the SpeechBrain repository, merged them into the main docs, improved documentation (updated outdated information, broken links, etc.).
- Added new tutorials:
- TensorFloat32 is now enabled by default when available (#2682)
New features
- Added layer dropout support for TransformerASR (#2309)
- Added the sign flip augmentation for ASR/EEG/potentially more (#2636)
- Improved reproducibility by adding
seed_everything, improved DDP handling for seeding (#2654) - Added "quirks" to centralize overriden PyTorch defaults and workarounds (among other things) in an easy-to-find fashion, with proper logging (#2558)
Bugfixes
- Improved performance for VAD inference (#2683)
- Fixed various issues with DDP handling (#2682)
- Fixed broken augmentation integration tests (#2628)
- Fixed error when processing newer CommonVoice (#2647)
- Fixed concat bug in augmentation (#2717)
- Removed EOS in G2P inference which was incorrectly introduced (#2718)
- ... and some more
New fetching semantics
We have made a number of changes that affect how fetch works, and this affects various things in a way you should be aware of.
- In various fetching-related code, such as inference interfaces'
from_hparams, thesavedirrefers to the directory where files should be collected. It is now optional and defaults toNone.- When fetching files (models, audio, etc.) from local paths or HuggingFace repositories, you no longer need to specify a target directory.
- For local file fetching, the path is returned directly.
- For HF fetching, HF cache is used directly.
- For URL fetching, you still need to specify the
savedir.
- Inference interfaces will no longer pollute your working directory with symlinks by default when loading audio files.
- Avoiding symlink creation by default is now much friendlier to Windows compatibility. We also added some warnings to help.
- If you do specify a
savedir, behavior should be largely unchanged (although more robust).
- When fetching files (models, audio, etc.) from local paths or HuggingFace repositories, you no longer need to specify a target directory.
- In various fetching-related code, you can now specify a
fetch_strategy.- The fetching strategy dictates what to do when a file is found locally, but not in the desired
savedir. For instance, if some model file is available in HuggingFace cache, you can now choose between copying, symlinking or not linking the file in thesavedir.
- The fetching strategy dictates what to do when a file is found locally, but not in the desired
fetchnow has anallow_networkparameter, which defaults toTrue. When disabled, this fails if the URI is not available locally, or if the file isn't found locally in HF cache.fetchalso now has anallow_updatesparameter, which defaults toTrue. It interrogates HF even if a local path is present in order to update any model files (or switch revisions), if required.
v1.0.1
This is a minor update which includes some new features and recipes, internal improvements, bugfixes, compatibility improvements, and wider Python backwards compatibility.
NOTE: both v1.0.0 and v1.0.1 were released earlier than this date on GitHub. These releases were accidentally marked as drafts.
Notable changes
- We now advertise support from Python
3.8to3.12(instead of3.9-3.11) and improved our testing in that regard. - Major improvements to Whisper integration with various tasks supported, fine-tuning fixes, performance improvements, and more (#2450)
- Improved model parameter info printing (#2470)
- Added new metrics mostly targeted at speech recognition (#2451)
- Added backwards compatibility for old
speechbrain.pretrainedimports that were broken following a v1.0 refactor (#2485) - Updated BibTeX citation. You may find the latest one here at all times.
Recipes and other features
- Added a VoxPopuli transducer recipe (#2421)
- Upgraded CommonVoice transducer and transformer recipes (#2433, #2465, #2560) with various improvements
- Refactored ESC50 recipes and added FocalNets (#2499), added single-sample inference for interpretation (#2616)
- Speechtokenizer integration (#2497)
- Added support for HiFi-GAN to work with new SSL Discrete Tokens, with support for bitrate-scalable training on LJSpeech and LibriTTS (#2571)
- Added recipe for Listenable Maps for Audio Classifiers (#2538)
Fixes
- Fixed errors with
ctc_segmentation(#2505) - Fixes and refactors for
RelPosEncXL(#2498) - Fixed input normalization incorrectly applying in-place to the user inputs in some cases (#2504)
- DDP fixes (#2506, #2633)
- Fixed backwards compatibility with older torchaudio version when not using streaming stuff (#2532)
- Fixed Separation and Enhancement recipes behavior when NaN is encountered (#2524)
- Fix for too aggressive SpecAugment in LibriSpeech transducer recipe (#2548)
- Fix for double file conversion in CommonVoice data preparation (#2557)
- Fixed SpectrogramDrop errors in some cases (#2564)
- Potential fix for Windows install issues when using the
--editableflag (#2541) - Improvements to SSL Discrete Tokens and refactoring (#2509)
- Fixes and improvements for quaternion networks (#2464)
- Fixed AISHELL models and added backwards compatibility warning for
causalinTransformerASR(#2606) - ... and a few more
Internal changes
- Improved code quality with the inclusion of spellchecking, include sorting, and stronger documentation linting in the CI pipeline.
- Significantly improved CI performance for a better PR development experience.
- Refactored the module structure of SpeechBrain to use lazy-loading when possible, reducing import times and greatly reducing circular import headaches.
- Introduced some infrastructure to enable some preprocessing when importing state dicts](https://gist.github.com/asumagic/1289f391acf849ca01b8ca7f9c5dd069)
v1.0.0
GitHub Repo stars Please, help our community project. Star on GitHub!
🚀 What's New in SpeechBrain 1.0?
📅 On February 2024, we released SpeechBrain 1.0, the result of a year-long collaborative effort by a large international network of developers led by our exceptional core development team.
📊 Some Numbers:
- SpeechBrain has evolved into a significant project and stands among the most widely used open-source toolkits for speech processing.
- Over 140 developers have contributed to our repository, getting more than 7.3k stars on GitHub.
- Monthly downloads from PyPI have reached an impressive 200k.
- Expanded to over 200 recipes for Conversational AI, featuring more than 100 pretrained models on HuggingFace.
🌟 Key Updates:
-
SpeechBrain 1.0 introduces significant advancements, expanding support for diverse datasets and tasks, including NLP and EEG processing.
-
The toolkit now excels in Conversational AI and various sequence processing applications.
-
Improvements encompass key techniques in speech recognition, streamable conformer transducers, integration with K2 for Finite State Transducers, CTC decoding and n-gram rescoring, new CTC/joint attention Beam Search interface, enhanced compatibility with HuggingFace Models (including GPT2 and Llama2), and refined data augmentation, training, and inference processes.
-
We have created a new repository dedicated to benchmarks, accessible at here. At present, this repository features benchmarks for various domains, including speech self-supervised models (MP3S), continual learning (CL-MASR), and EEG processing (SpeechBrain-MOABB).
For detailed technical information, please refer to the section below.
🔄 Breaking Changes
People familiar with SpeechBrain know very well that we do our best to avoid backward incompatible changes. While SpeechBrain has consistently prioritized maintaining backward compatibility, the introduction of this new major version presented an opportunity for significant enhancements and refactorings.
-
🤗 HuggingFace Interface Refactor:
- Previously, our interfaces were limited to specific models like Whisper, HuBERT, WavLM, and wav2vec 2.0.
- We've refactored the interface to be more general, now supporting any transformer model from HuggingFace including LLMs.
- Simply inherit from our new interface and enjoy the flexibility.
- The updated interfaces can be accessed here.
-
🔍 BeamSearch Refactor:
- The previous beam search interface, while functional, was challenging to comprehend and modify due to the combined search and rescoring parts.
- We've introduced a new interface where scoring and search are separated, managed by distinct functions, resulting in simpler and more readable code.
- This update allows users to easily incorporate various scorers, including n-gram LM and custom heuristics, in the search part.
- Additionally, support for pure CTC training and decoding, batch and GPU decoding, partial or full candidate scoring, and N-best hypothesis output with neural LM rescorers has been added.
- An interface to K2 for search based on Finite State Transducers (FST) is now available.
- The updated decoders are available here.
-
🎨 Data Augmentation Refactor:
- The data augmentation capabilities have been enhanced, offering users access to various functions in speechbrain/augment.
- New techniques, such as CodecAugment, RandomShift (Time), RandomShift (Frequency), DoClip, RandAmp, ChannelDrop, ChannelSwap, CutCat, and DropBitResolution, have been introduced.
- Augmentation can now be customized and combined using the Augmenter interface in speechbrain/augment/augmenter.py, providing more control during training.
- Take a look here for a tutorial on speech augmentation.
- The updated augmenters are available here.
-
🧠 Brain Class Refactor:
- The fit_batch method in the Brain Class has been refactored to minimize the need for overrides in training scripts.
- Native support for different precisions (fp32, fp16, bf16), mixed precision, compilation, multiple optimizers, and improved multi-GPU training with torchrun is now available.
- Take a look at the refactored brain class here.
-
🔍 Inference Interfaces Refactor:
- Inference interfaces, once stored in a single file (speechbrain/pretrained/interfaces.py), are now organized into smaller libraries in speechbrain/inference, enhancing clarity and intuitiveness.
- You can access the new inference interfaces here.
🔊 Automatic Speech Recognition
- Developed a new recipe for training a Streamable Conformer Transducer using Librispeech dataset (accessible here). The streamable model achieves a Word Error Rate (WER) of 2.72% on the test-clean subset.
- Implemented a dedicated inference inference to support streamable ASR (accessible here).
- New models, including HyperConformer andd Branchformer have been introduced. Examples of recipes utilizing them can be found here.
- Additional support for datasets like RescueSpeech, CommonVoice 14.0, AMI, Tedlium 2.
- The ASR search pipeline has undergone a complete refactoring and enhancement (see comment above).
- A new recipe for Bayesian ASR has been added here.
🔄 Interface with Kaldi2 (K2-FSA)
- Integration of an interface that seamlessly connects SpeechBrain with K2-FSA, allowing for constrained search and more.
- Support for K2 CTC training and lexicon decoding, along with integration of K2 HLG and n-gram rescoring.
- Competitive results achieved with Wav2vec2 on LibriSpeech test sets.
- Explore an example recipe utilizing K2 here.
🎙 Speech Synthesis (TTS)
- Improvements to FastSpeech2.
- Development of the DiffWave Vocoder. See the recipe here.
- Development of a Zero-Shot TTS baseline based on Tacotron. See the recipe here.
🌐 Speech-to-Speech Translation:
- Introduction of new recipes for CVSS datasets and IWSLT 2022 Low-resource Task, based on mBART/NLLB and SAMU wav2vec.
🌟 Speech Generation
- Implementation of diffusion and latent diffusion techniques with an example recipe showcased on AudioMNIST.
🎧 Interpretability of Audio Signals
- Implementation of Learning to Interpret and PIQ techniques with example recipes demonstrated on ECS50.
😊 Speech Emotion Diarization
- Support for Speech Emotion Diarization, featuring an example recipe on the Zaion Emotion Dataset. See the training recipe here.
🎙️ Speaker Recognition
- Introduction of a new Speaker Recognition recipe on Voxceleb Speaker, based on ResNET.
🔊 Speech Enhancement
- Release of a new Speech Enhancement baseline based on the DNS dataset.
🎵 Discrete Audio Representations
- Support for pretrained models with discrete audio representations, including EnCodec and DAC.
- Support for discretization of continuous representations provided by popular self-supervised models such as Hubert and Wav2vec2.
🤖 Interfaces with Large Language Models
- Creation of interfaces with popular open-source Large Language Models, such as GPT2 and Llama2.
- These models can be easily fine-tuned in SpeechBrain for tasks like Response Generation, exemplified with a recipe for the MultiWOZ dataset.
- The Large Language Model can also be employed to rescore n-best ASR hypotheses.
🔄 Continuous Integration
- All recipes undergo automatic testing with one or multiple GPUs, ensuring robust performance.
- HuggingFace interfaces are automatically verified, contributing to a seamless integration process.
- Continuous improvement of integration and unitary tests to comprehensively cover most functionalities within SpeechBrain.
🔍 Profiling
- We have simplified the Profiler to enable easier identification of computing bottlenecks and quicker evaluation of model efficiency.
- Now, you can profile your model during training effortlessly with:
python train.py hparams/config.yaml --profile_training --profile_warmup 10 --profile_steps 5
- Check out our tutorial for more detailed information.
📈 Benchmarks
-
Release of a new benchmark repository, aimed at aiding the community in standardization across various areas.
- CL-MASR (Continual Learning Benchmark for Multilingual ASR):
-
A benchmark designed to assess continual learning techniques on multilingual speech recognition tasks
-
Provides scripts to train multilingual ASR systems, specifically Whisper and WavLM-based, on a subset of 20 languages selected from Common Voice 13 in a continual learning fashion.
-
Implementation of various methods, including rehearsal-based, architecture-based, and regularization-based approaches.
- A benchmark for accurate assessment of speech self-supervised models.
- Noteworthy for allowing users to select multiple probing heads for downstream training.
- A benchmark offering recipes for processing electroencephalographic (EEG) signals, seamlessly integrated with the popular Mother of all BCI Benchmarks (MOABB).
- Facilitates the integration and evaluation of new models on all supported tasks, presenting an interface for easy model integration and testing, along with a fair and robust method for comparing different architectures.
🔄 Transitioning to SpeechBrain 1.0
- Please, refer to this tutorial for in-depth technical information regarding the transition to SpeechBrain 1.0.
New Contributors
- @ywk991112 made their first contribution in https://github.com/speechbrain/speechbrain/pull/2228
- @kimmchii made their first contribution in https://github.com/speechbrain/speechbrain/pull/2320
- @ppisljar made their first contribution in https://github.com/speechbrain/speechbrain/pull/2336
- @gaspardpetit made their first contribution in https://github.com/speechbrain/speechbrain/pull/2335
- @RISHIKREDDYL made their first contribution in https://github.com/speechbrain/speechbrain/pull/2389
- @ZhaoZeyu1995 made their first contribution in https://github.com/speechbrain/speechbrain/pull/2345
Full Changelog: https://github.com/speechbrain/speechbrain/compare/v0.5.16...v1.0.0