com.litongjava.whipser.cpp.java.callbacks.WhisperNewSegmentCallback Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of whipser-cpp-java Show documentation
Show all versions of whipser-cpp-java Show documentation
Java JNI Bindings for Whisper
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