whisper_pcm_to_mel method

int whisper_pcm_to_mel(
  1. Pointer<whisper_context> ctx,
  2. Pointer<Float> samples,
  3. int n_samples,
  4. int n_threads,
)

Convert RAW PCM audio to log mel spectrogram. The resulting spectrogram is stored inside the default state of the provided whisper context. Returns 0 on success

Implementation

int whisper_pcm_to_mel(
  ffi.Pointer<whisper_context> ctx,
  ffi.Pointer<ffi.Float> samples,
  int n_samples,
  int n_threads,
) {
  return _whisper_pcm_to_mel(
    ctx,
    samples,
    n_samples,
    n_threads,
  );
}