Package io.github.givimad.whisperjni
Class WhisperContext
java.lang.Object
io.github.givimad.whisperjni.WhisperJNI.WhisperJNIPointer
io.github.givimad.whisperjni.WhisperContext
- All Implemented Interfaces:
AutoCloseable
The
WhisperContext class represents a native whisper.cpp context.
You need to dispose the native memory for its instances by calling close()
or WhisperJNI.free(WhisperContext)- Author:
- Miguel Álvarez Díez - Initial contribution
-
Field Summary
Fields inherited from class io.github.givimad.whisperjni.WhisperJNI.WhisperJNIPointer
ref -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWhisperContext(WhisperJNI whisper, int ref) Internal context constructor -
Method Summary
Methods inherited from class io.github.givimad.whisperjni.WhisperJNI.WhisperJNIPointer
assertAvailable, isReleased, release
-
Constructor Details
-
WhisperContext
Internal context constructor- Parameters:
whisper- library instanceref- native pointer identifier
-
-
Method Details
-
close
public void close()
-