whisper_set_mel method

int whisper_set_mel(
  1. Pointer<whisper_context> ctx,
  2. Pointer<Float> data,
  3. int n_len,
  4. int n_mel,
)

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,
  );
}