whisper_encoder_begin_callback typedef

whisper_encoder_begin_callback = Pointer<NativeFunction<Bool Function(Pointer<whisper_context> ctx, Pointer<whisper_state> state, Pointer<Void> user_data)>>

Encoder begin callback If not NULL, called before the encoder starts If it returns false, the computation is aborted

Implementation

typedef whisper_encoder_begin_callback = ffi.Pointer<
    ffi.NativeFunction<
        ffi.Bool Function(
            ffi.Pointer<whisper_context> ctx,
            ffi.Pointer<whisper_state> state,
            ffi.Pointer<ffi.Void> user_data)>>;