powered by
Load audio from file, convert to mono, resample to 16kHz.
load_audio(file)
Numeric vector of audio samples normalized to -1 to 1 range
Path to audio file (WAV, MP3, etc.)
# Load included sample audio audio_file <- system.file("audio", "jfk.mp3", package = "whisper") samples <- load_audio(audio_file) length(samples) range(samples)
Run the code above in your browser using DataLab