All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.litongjava.whipser.cpp.java.callbacks.WhisperNewSegmentCallback Maven / Gradle / Ivy

The newest version!
package com.litongjava.whipser.cpp.java.callbacks;

import com.sun.jna.Callback;
import com.sun.jna.Pointer;

/**
 * Callback for the text segment.
 * Called on every newly generated text segment.
 * Use the whisper_full_...() functions to obtain the text segments.
 */
public interface WhisperNewSegmentCallback extends Callback {

  /**
   * Callback method for the text segment.
   *
   * @param ctx        The whisper context.
   * @param state      The whisper state.
   * @param n_new      The number of newly generated text segments.
   * @param user_data  User data.
   */
  void callback(Pointer ctx, Pointer state, int n_new, Pointer user_data);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy