whisper_full_parallel method

int whisper_full_parallel(
  1. Pointer<whisper_context> ctx,
  2. whisper_full_params params,
  3. Pointer<Float> samples,
  4. int n_samples,
  5. int n_processors,
)

Split the input audio in chunks and process each chunk separately using whisper_full_with_state() Result is stored in the default state of the context Not thread safe if executed in parallel on the same context. It seems this approach can offer some speedup in some cases. However, the transcription accuracy can be worse at the beginning and end of each chunk.

Implementation

int whisper_full_parallel(
  ffi.Pointer<whisper_context> ctx,
  whisper_full_params params,
  ffi.Pointer<ffi.Float> samples,
  int n_samples,
  int n_processors,
) {
  return _whisper_full_parallel(
    ctx,
    params,
    samples,
    n_samples,
    n_processors,
  );
}