wakeword-alexa-en
Alexa voice command recognition model
1 min read
The alexa_v1 model is designed to recognize the English voice command "Alexa" in 16 kHz audio. It is built for Home Assistant users and the openWakeWord library as an alternative to the standard model, but with a more permissive Apache 2.0 license instead of CC BY-NC-SA 4.0, allowing commercial use. The model takes audio snippets as input and outputs an activation probability prediction based on a specified threshold.
Key features
- English recognition of the word "Alexa" in a 16 kHz audio stream.
- Apache 2.0 license, permitting commercial use.
- Compatibility with the Home Assistant and openWakeWord ecosystem.
- Configured activation threshold (0.487) for precise detection.
What you can do
- Integrate the model into Home Assistant to control your smart home via the "Alexa" voice command.
- Run recognition in a custom Python script using the openWakeWord library and ONNX framework.
Example
from huggingface_hub import hf_hub_download
from openwakeword.model import Model
model = Model(
wakeword_models=[hf_hub_download("13fragments/wakeword-alexa-en", "alexa_v1.onnx")],
inference_framework="onnx",
melspec_model_path="melspectrogram.onnx",
embedding_model_path="embedding_model.onnx",
)
scores = model.predict(frame)
detected = scores["alexa_v1"] > 0.487Read more
DetailsBenchmarks: 0.523 false positives per hour.
Limitations: only English speech is supported, training data includes synthetic clips.
Testing was performed on a CPU with openWakeWord 0.6.0.










Comments