6 releases
Uses new Rust 2024
| 0.2.4 | Feb 28, 2026 |
|---|---|
| 0.2.3 | Feb 15, 2026 |
| 0.1.1 | Feb 10, 2026 |
#1095 in Audio
270KB
357 lines
bevy_whisperer
Speech recognition plugin for bevy, using whisper-apr.
The microphone feature enables speech transcription from a microphone.
You need an .apr model to use the plugin. You can download the multilingual whisper-tiny model here.
curl -L -o assets/whisper-tiny.apr https://huggingface.co/paiml/whisper-apr-tiny/resolve/main/whisper-tiny.apr
You can also generate your own apr models, by converting existing Whisper models to the apr model format. If you only need the English language, you can convert the tiny.en Whisper model to the apr format. See this page for a list of the different models.
Examples
Asset
The transcribe_asset example shows how to run speech recognition on a bevy asset.
Control
The control example shows how to use the WhispererMicPlugin and control an entity by listening to transcription events.
Microphone
The old transcribe_microphone example shows how to manually run speech recognition on the audio coming from a microphone.
Compatible Bevy versions
| Bevy version | bevy_whisperer version |
|---|---|
| 0.18 | 0.2 |
| 0.17 | 0.1 |
Dependencies
~105–150MB
~2.5M SLoC