Constructs a new Whisper instance with a specified model file and configuration.
The path to the Whisper model file.
Optional configuration for the Whisper instance.
Private
_availablePrivate
_configPrivate
_filePrivate
_loadingPrivate
_offload_Private
_tasksPrivate
clear_Loads the whisper model asynchronously. If the model is already being loaded, returns the existing one.
You don't need to call this method directly, it's called automatically if necessary when you call Whisper.transcribe.
A Promise that resolves to the loaded model.
Transcribes the given PCM audio data using the Whisper model.
The mono 16k PCM audio data to transcribe.
Optional parameters for transcription.
A promise that resolves to the result of the transcription task.
The Whisper class is responsible for managing the lifecycle and operations of whisper model. It handles the loading and offloading of the model, managing transcription tasks, and configuring model parameters.