diff --git a/src/main.zig b/src/main.zig index 484592b..9667e1a 100644 --- a/src/main.zig +++ b/src/main.zig @@ -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;