whisper_set_mel method
This can be used to set a custom log mel spectrogram inside the default state of the provided whisper context. Use this instead of whisper_pcm_to_mel() if you want to provide your own log mel spectrogram. n_mel must be 80 Returns 0 on success
Implementation
int whisper_set_mel(
ffi.Pointer<whisper_context> ctx,
ffi.Pointer<ffi.Float> data,
int n_len,
int n_mel,
) {
return _whisper_set_mel(
ctx,
data,
n_len,
n_mel,
);
}