Wakeword¶
TFLite Model¶
This module contains the class for detecting the presence of keywords in an audio stream
-
class
spokestack.wakeword.tflite.
WakewordTrigger
(pre_emphasis=0.0, sample_rate=16000, fft_window_type='hann', fft_hop_length=10, model_dir='', posterior_threshold=0.5, **kwargs)[source]¶ Detects the presence of a wakeword in the audio input
- Parameters
pre_emphasis (float) – The value of the pre-emmphasis filter
sample_rate (int) – The number of audio samples per second of audio (kHz)
fft_window_type (str) – The type of fft window. (only support for hann)
fft_hop_length (int) – Audio sliding window for STFT calculation (ms)
model_dir (str) – Path to the directory containing .tflite models
posterior_threshold (float) – Probability threshold for if a wakeword was detected