diff --git a/src/main.zig b/src/main.zig index 71e1ca7..a080ebe 100644 --- a/src/main.zig +++ b/src/main.zig @@ -38,7 +38,7 @@ const DemoHandler = struct { // Print error with timestamp const timestamp = std.time.timestamp(); - std.debug.print("[{}] Error #{} ({}): {s}\n", .{ timestamp, self.error_count, error_code, message }); + std.log.err("[{}] Error #{} ({}): {s}", .{ timestamp, self.error_count, error_code, message }); } /// Handle detailed errors with comprehensive information @@ -159,11 +159,6 @@ pub fn main() !void { }); _ = c.signal(c.SIGINT, signalHandler); - std.debug.print("STT Library Demo\n", .{}); - std.debug.print("================\n", .{}); - std.debug.print("This demo shows how to use the STT library for speech recognition.\n", .{}); - std.debug.print("The library uses callback-based event handling for detected speech.\n\n", .{}); - // Create demo handler with statistics tracking var demo_handler = DemoHandler{}; const speech_handler = stt.SpeechEventHandler{