filter out typical noise detected
This commit is contained in:
parent
d6cab46c99
commit
ebd4b531c7
1 changed files with 3 additions and 1 deletions
|
@ -26,7 +26,9 @@ const SpeechHandler = struct {
|
|||
/// Handle detected speech
|
||||
fn onSpeech(ctx: *anyopaque, text: []const u8) void {
|
||||
if (builtin.is_test) return; // Suppress output during tests
|
||||
|
||||
// Look for noise words and skip it if so
|
||||
if (std.mem.eql(u8, text, "huh")) return;
|
||||
if (std.mem.eql(u8, text, "but")) return;
|
||||
const self: *SpeechHandler = @ptrCast(@alignCast(ctx));
|
||||
self.speech_count += 1;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue