This repository hosts zaki_livekit.onnx, a stateful streaming wake-word detector trained for the Algerian Darija wake phrase زاكي (Zaki).
It processes 80 ms audio frames (1280 samples at 16 kHz mono) on CPU while maintaining 9 internal KV-cache and convolutional state tensors across frames.
pip install onnxruntime huggingface_hub numpy
import numpy as np
from huggingface_hub import hf_hub_download
import sys, os
model_path = hf_hub_download(repo_id="s1nju/zaki-livekit-wakeword-onnx", filename="zaki_livekit.onnx")
wrapper_path = hf_hub_download(repo_id="s1nju/zaki-livekit-wakeword-onnx", filename="detector.py")
sys.path.insert(0, os.path.dirname(wrapper_path))
from detector import StatefulLiveKitDetector
detector = StatefulLiveKitDetector(model_path=model_path)
dummy_80ms_chunk = np.zeros(1280, dtype=np.float32)
score = detector.predict(dummy_80ms_chunk)
print(f"Wake-word probability: {score:.4f}")