1import openwakeword
2model = openwakeword.Model(
3 custom_model_paths={"hey_wu": "hey_wu.onnx"}
4)
5# Feed 1280-sample int16 chunks
6result = model.predict(chunk)
7score = result.get("hey_wu", 0.0)
8# If score > 0.7, wake word detectedtrain_hey_wu_colab.py for the full training pipeline.1docker build -f Dockerfile.train -t wuwei-train-img .
2docker run --rm -v /path/to/cache:/root/wuwei-training-data wuwei-train-imgcolab run --gpu T4 train_hey_wu_colab.py