more output cleanup

This commit is contained in:
Emil Lerch 2025-09-10 17:33:13 -07:00
parent e8df37f447
commit 8d1b51ad40
Signed by: lobo
GPG key ID: A7B62D657EF764F8

View file

@ -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{