more output cleanup
This commit is contained in:
parent
e8df37f447
commit
8d1b51ad40
1 changed files with 1 additions and 6 deletions
|
@ -38,7 +38,7 @@ const DemoHandler = struct {
|
||||||
|
|
||||||
// Print error with timestamp
|
// Print error with timestamp
|
||||||
const timestamp = std.time.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
|
/// Handle detailed errors with comprehensive information
|
||||||
|
@ -159,11 +159,6 @@ pub fn main() !void {
|
||||||
});
|
});
|
||||||
_ = c.signal(c.SIGINT, signalHandler);
|
_ = 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
|
// Create demo handler with statistics tracking
|
||||||
var demo_handler = DemoHandler{};
|
var demo_handler = DemoHandler{};
|
||||||
const speech_handler = stt.SpeechEventHandler{
|
const speech_handler = stt.SpeechEventHandler{
|
||||||
|
|
Loading…
Add table
Reference in a new issue