Interface WhisperNewSegmentCallback

All Superinterfaces:
com.sun.jna.Callback

public interface WhisperNewSegmentCallback extends com.sun.jna.Callback
Callback for the text segment. Called on every newly generated text segment. Use the whisper_full_...() functions to obtain the text segments.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.sun.jna.Callback

    com.sun.jna.Callback.UncaughtExceptionHandler
  • Field Summary

    Fields inherited from interface com.sun.jna.Callback

    FORBIDDEN_NAMES, METHOD_NAME
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    callback(com.sun.jna.Pointer ctx, com.sun.jna.Pointer state, int n_new, com.sun.jna.Pointer user_data)
    Callback method for the text segment.
  • Method Details

    • callback

      void callback(com.sun.jna.Pointer ctx, com.sun.jna.Pointer state, int n_new, com.sun.jna.Pointer user_data)
      Callback method for the text segment.
      Parameters:
      ctx - The whisper context.
      state - The whisper state.
      n_new - The number of newly generated text segments.
      user_data - User data.