Guided CLI · Real voice samples · Fast training · ONNX export · Open source Local · Lightweight
Any language. Your voice. Your wake word.
You shouldn't have to rack your brain to train a wake word.
WakeTorch is a complete training and testing interface in your terminal: record or upload your voice, train, check the results, try your model live with your microphone, and export a small ONNX model with a ready-to-run code example. All in one place, running on your own computer.
| The usual problem | openWakeWord / microWakeWord | Picovoice Porcupine | WakeTorch |
|---|---|---|---|
| Setup | Colab notebooks, dependencies, config to edit | Account and access key | Install once, run waketorch |
| Your language | English text-to-speech by default; other languages mean changing the pipeline yourself | 17 supported languages | Just speak it, any language |
| Your voice | Synthetic voices | Typed phrase | Trained on real recordings of you |
| Time to a model | 1–2+ hours on Colab, setup included | Seconds, but in their cloud | Minutes, on your computer |
| Control | Colab sessions and limits | Their servers, free tier ended in 2026 | Local, no account, no cloud |
Based on public documentation and hands-on experience, last checked November 2026.
Requirements: Python 3.10+ (3.12 recommended) and a microphone (if you want to record directly).
Download the ZIP from GitHub (Code → Download ZIP) and unzip it, or clone it:
git clone https://github.com/alejandrolopezdata/waketorch.gitmacOS / Linux
cd ~/Downloads/waketorch-main
chmod +x install.sh
./install.shWindows (Command Prompt)
cd Downloads\waketorch-main
install.batYou can also just double-click install.bat in the unzipped folder.
Open a new terminal and type:
waketorch./install.sh uninstall (macOS / Linux) or install.bat uninstall (Windows). Your projects are not touched.
You don't need a powerful computer. Training is the heavy part; once you have the .onnx file, any computer can run it on the CPU.
- NVIDIA GPU: highly recommended.
- Generic GPU: recommended.
- Mac with Apple Silicon: recommended.
- CPU only: works, but training is slower.
Not sure about yours? Run the device check (about a minute):
- It detects your CPU, GPU, and RAM, runs a short benchmark, and recommends the best parameters for your system.
Once WakeTorch is installed, run waketorch and follow these steps. The whole process takes just a few minutes.
Start by creating a new project. Everything you record, upload, and train will be stored there. Once it's created, open it to start working on your wake word.
Your model learns from three types of audio. You can record them directly from the CLI or upload files you already have.
Your target wake word, and nothing else. Record or upload 30–50 clips, ideally with a bit of variety in tone, speed, and distance from the microphone.
Random words and words that sound similar to your wake word, so the model learns what not to react to. Try to keep the clips about the same length as your wake word clips.
Tip: Need ideas? Ask ChatGPT or any other LLM:
"Give me 30–50 random words and other words similar to (my_wakeword)."
Record a long sample, a few minutes at least. It can include background noise, people talking, music, and so on. This audio is mixed with your wake word and negative clips during training, which makes the model more robust in real-world environments.
Start the training. 2000 steps is a good starting point.
Not sure which parameters suit your computer? Run the device check and WakeTorch will recommend the best settings for your hardware.
When training finishes, you can:
-
Check the results and the training curve.
Note: The example screenshots (training and results) are not a good reference for how many clips you need. They come from a model trained with just 21 wake word samples and 20 negatives. It still works quite well, but with so few clips the validation set is tiny and the metrics are only a rough guide. For more reliable results, use the recommended 30-50 wake word clips and a good variety of negatives.
-
Test it with your mic. Choose "4. Try the model with the mic", then say random words and your wake word to see how it responds.
-
Export your .onnx file. Select 5. How to use my model to get a ready-to-use code example. You can also copy the appropriate example from
detect_from_micordetect_from_file, depending on whether you want to detect your wake word through a microphone or an audio file.
That’s it! Your wake word, in your language, running entirely locally.
WakeTorch models are tiny. A trained model is a single .onnx file of about 1.3 MB, smaller than a typical phone photo.
| Apple M2 (1 CPU thread) | |
|---|---|
| File size | 1.28 MB |
| Parameters | 315 K |
| Time per check | ~2 ms |
| CPU while listening | ~7.5% of one core |
| Memory (minimal app) | ~58 MB total, ~13 MB for the model |
What this means in plain words
- Light on disk: 1.3 MB is easy to ship inside any app or device.
- Light on the CPU: the model checks the audio 10 times per second. Each check takes about 2 ms, and a real listening loop uses roughly 7.5% of a single core, so it never needs a GPU.
- Light on memory: most of the ~58 MB is Python and ONNX Runtime. The model itself adds about 13 MB.
- Room to spare: it uses ~7.5% of one CPU core, so even a core several times slower should handle it.
Measured with tests/onnx_test.py on an Apple M2, 1 thread, onnxruntime 1.31.1. The estimate for slower devices assumes time scales with core speed. Results on your hardware will vary, so run the script to check.
Contributions are welcome! Whether it's a bug report, a new idea, or a pull request, you're invited to help improve WakeTorch.
- Found a bug? Open an issue and include your OS, Python version, and steps to reproduce it.
- Have an idea? Open an issue and tell us what you'd like to see.
WakeTorch is licensed under the Apache License 2.0.






