Repository navigation
Releases
KeywordTensor 1.5.4
KeywordTensor 1.5.3
✨ Feature: Retry Support in Recording
- Added
"retry"return option to thetargetparameter in.record(). Returning it automatically repeats the bad audio sample during dataset collection.
KeywordTensor 1.5.2
🔧 Patch: PyPI Logo Fix
- Fixed an issue with double logo rendering on the PyPI project page.
Keywordtensor 1.5.1
This release includes several important fixes and adjustments to the training engine, ensuring better model robustness and more stable performance across different datasets.
⚖️ Handling of Imbalanced Data
We rebuilt the way the model learns from unequal datasets. You can now confidently train custom models on datasets with significant differences in class sizes. The updated algorithm balances the training process, preventing the issue of ignoring smaller classes.
🔇 Background Noise Class (other) Adjustments
We refined the mechanism that calculates the optimal size of the other class. As a result, the model is much better at balancing its sensitivity to commands while safely rejecting background noise and random spoken words.
🎧 Augmented Quiet Audio
We increased the range of random volume reduction (Gain) during the training process. Models now learn to recognize commands more effectively, even when the user speaks quieter or is further away from the microphone.
KeywordTensor 1.5.0
✨ What's New
This release is a huge update, introducing a redesigned data pipeline, realistic acoustic simulation, and a much more flexible training architecture. Models trained with this update are designed to generalize better to noisy, real-world environments.
🚀 Simplified Training Workflow
Training robust keyword spotting models now requires far less setup. Simply combine datasets, specify your keyword, background, and RIR classes, and the engine automatically prepares the training pipeline:
model.train(
dataset=["google", "caiman", "openrir", "hf:user/custom", "../my_audio"],
classes=["one", "two", "three"],
bg_classes=["background"],
rir_classes=["rir"],
mixed=True
)🗂️ Unified Dataset Architecture
- Multiple Dataset Support: You can now pass multiple datasets simultaneously. The engine natively handles built-in datasets, Hugging Face repositories, and local folders all at once.
- Real Background Noise & RIR Mixing: By simply specifying
bg_classesandrir_classes, the engine automatically extracts background recordings and room impulse responses from your dataset pool and mixes them directly into your training samples. - Native "Mixed" Class: Setting
mixed=Trueautomatically builds a highly robust"other"class by intelligently blending unused words with your background recordings.
📦 Native Datasets On-Demand
Instead of forcing a single dataset, you now choose exactly what goes into your pool. The engine features native one-click support for the following datasets and automatically downloads them if you need them:
google– The classic Speech Commands dataset.mswc– The massive English Multilingual Spoken Words Corpus.mswc-pl– Polish subset of the MSWC dataset.caiman– Authentic real-world background sounds for robust noise augmentation.openrir– Real Room Impulse Responses to simulate acoustic reverberation and echoes.
🎧 Realistic Acoustic Augmentations
- Physical Audio Augmentations: The augmentation pipeline now incorporates authentic background recordings and room impulse responses alongside existing audio augmentations.
- Improved Robustness: Spectrogram and audio augmentations have been refined to improve robustness against frequency loss, bandwidth limitations, and short audio dropouts.
- Better Real-World Models: Our pretrained models have been retrained using the new augmentation pipeline, improving robustness in noisy everyday environments.
⚙️ Under-The-Hood Engine Upgrades
- Automatic Class Balancing: The new engine automatically balances imbalanced datasets during training without requiring manual class weights.
- Advanced Training Metrics: Added Precision, Recall, and F1 Score tracking to the training logs.
KeywordTensor 1.4.1
This release expands the KeywordTensor library with a rich collection of new pretrained models, native support for the English MSWC dataset, and smart auto-downloading for pretrained models. We have also added an entire suite of ready-to-use applications to our examples.
🌟 New Demos & Examples
- Interactive Web Demos: Added fully playable
2048andSokobangames controlled entirely by voice. - Ready-to-use Python Apps: The
examples/directory now includes complete implementations for anassistant,media_player_control, andpresentation_controller.
🤖 Pretrained Models & Datasets
- New Pretrained Models: Added powerful new ready-to-use models:
numbers(0-9),assistant(Marvin/Sheila),media_control(Play/Stop/Next/Back), andspatial_nav(Up/Down/Left/Right). - Smart Auto-Downloading: Pretrained models (approx. 40MB) are no longer bundled directly with the library.
KeywordTensornow automatically fetches and downloads these models on-the-fly only when they are needed. - English MSWC Support: We have officially added native support for training and evaluation on the massive English MSWC dataset.
🛠️ Patch 1.4.1 Note
- PyPI Release Fix: Added
MANIFEST.into keep the package lightweight and ensure seamless automated PyPI distribution.
KeywordTensor 1.4.0
This release expands the KeywordTensor library with a rich collection of new pretrained models, native support for the English MSWC dataset, and smart auto-downloading for pretrained models. We have also added an entire suite of ready-to-use applications to our examples.
🌟 New Demos & Examples
- Interactive Web Demos: Added fully playable
2048andSokobangames controlled entirely by voice. - Ready-to-use Python Apps: The
examples/directory now includes complete implementations for anassistant,media_player_control, andpresentation_controller.
🤖 Pretrained Models & Datasets
- New Pretrained Models: Added powerful new ready-to-use models:
numbers(0-9),assistant(Marvin/Sheila),media_control(Play/Stop/Next/Back), andspatial_nav(Up/Down/Left/Right). - Smart Auto-Downloading: Pretrained models (approx. 40MB) are no longer bundled directly with the library.
KeywordTensornow automatically fetches and downloads these models on-the-fly only when they are needed. - English MSWC Support: We have officially added native support for training and evaluation on the massive English MSWC dataset.
KeywordTensor 1.3.0
This release brings significant improvements to the KeywordTensor training engine, focusing on a new background noise dataset, enhanced audio randomness, and advanced hardware support.
⚡ Core & Background Noise
- Background Noise Dataset: The engine now natively integrates the
Myrtle/CAIMAN-ASR-BackgroundNoisedataset for background noise generation, completely replacing the ESC-50 dataset.
🎙️ Audio Processing Pipeline
- Advanced Temporal Cropping: The internal audio loading pipeline has been completely rebuilt to support advanced data augmentation. The engine now applies dynamic random temporal cropping (for long audio files) and random zero-padding (for short files) exclusively during the training phase. This drastically improves the model's robustness against unpredictable temporal shifts in real-world scenarios.
📊 Training & Callbacks
- Custom FastAI Callbacks: Added a new
cbsparameter to thetrain()method. Developers can now seamlessly inject custom FastAI callbacks (e.g., Weights & Biases, TensorBoard loggers) directly into the training loop for advanced tracking and telemetry. - Multi-GPU ONNX Export: Re-engineered the ONNX model export logic. The engine now automatically detects and unwraps
nn.DataParallelstructures, ensuring that models trained on multi-GPU systems maintain clean, prefix-free layer structures during deployment.
KeywordTensor 1.2.8
Fix missing _config suffix in tak_nie model filename
KeywordTensor 1.2.7
Changed the default pretrained model