diff --git a/src/stt.zig b/src/stt.zig index a783779..3a444fc 100644 --- a/src/stt.zig +++ b/src/stt.zig @@ -1336,7 +1336,7 @@ pub fn init(allocator: std.mem.Allocator, options: Options) Error!Session { /// C-compatible API functions for use from other languages /// These wrap the Zig API with C calling conventions /// Opaque handle type for C API -pub const SttHandle = opaque {}; +pub const Handle = opaque {}; /// Initialize STT library (C API) /// @@ -1345,9 +1345,9 @@ pub const SttHandle = opaque {}; /// - audio_device: Null-terminated ALSA device name /// /// Returns: -/// - Pointer to SttHandle on success +/// - Pointer to Handle on success /// - null on failure -pub export fn stt_init(model_path: [*:0]const u8, audio_device: [*:0]const u8) ?*SttHandle { +pub export fn stt_init(model_path: [*:0]const u8, audio_device: [*:0]const u8) ?*Handle { // TODO: Implement C API wrapper in subsequent tasks _ = model_path; _ = audio_device; @@ -1356,7 +1356,7 @@ pub export fn stt_init(model_path: [*:0]const u8, audio_device: [*:0]const u8) ? /// Set speech detection callback (C API) /// TODO: Implement in subsequent tasks with proper C-compatible callback types -// pub export fn stt_set_speech_callback(handle: *SttHandle, callback: SpeechCallback, user_data: ?*anyopaque) void { +// pub export fn stt_set_speech_callback(handle: *Handle, callback: SpeechCallback, user_data: ?*anyopaque) void { // _ = handle; // _ = callback; // _ = user_data; @@ -1364,27 +1364,27 @@ pub export fn stt_init(model_path: [*:0]const u8, audio_device: [*:0]const u8) ? /// Set error callback (C API) /// TODO: Implement in subsequent tasks with proper C-compatible callback types -// pub export fn stt_set_error_callback(handle: *SttHandle, callback: ErrorCallback, user_data: ?*anyopaque) void { +// pub export fn stt_set_error_callback(handle: *Handle, callback: ErrorCallback, user_data: ?*anyopaque) void { // _ = handle; // _ = callback; // _ = user_data; // } /// Start listening (C API) -pub export fn stt_start_listening(handle: *SttHandle) c_int { +pub export fn stt_start_listening(handle: *Handle) c_int { _ = handle; // TODO: Implement in subsequent tasks return -1; // Error for now } /// Stop listening (C API) -pub export fn stt_stop_listening(handle: *SttHandle) void { +pub export fn stt_stop_listening(handle: *Handle) void { _ = handle; // TODO: Implement in subsequent tasks } /// Deinitialize STT library (C API) -pub export fn stt_deinit(handle: *SttHandle) void { +pub export fn stt_deinit(handle: *Handle) void { _ = handle; // TODO: Implement in subsequent tasks }