whisper_new_segment_callback typedef
whisper_new_segment_callback = Pointer<NativeFunction<Void Function(Pointer<whisper_context> ctx, Pointer<whisper_state> state, Int n_new, Pointer<Void> user_data)> >
Text segment callback Called on every newly generated text segment Use the whisper_full_...() functions to obtain the text segments
Implementation
typedef whisper_new_segment_callback = ffi.Pointer<
ffi.NativeFunction<
ffi.Void Function(
ffi.Pointer<whisper_context> ctx,
ffi.Pointer<whisper_state> state,
ffi.Int n_new,
ffi.Pointer<ffi.Void> user_data)>>;