Learn R Programming

whisper (version 0.1.0)

pad_or_trim: Pad or Trim Audio to Fixed Length

Description

Pad or Trim Audio to Fixed Length

Usage

pad_or_trim(audio, length = WHISPER_N_SAMPLES)

Value

Numeric vector of specified length

Arguments

audio

Numeric vector of audio samples

length

Target length in samples (default: 30s at 16kHz)