| load_audio | R Documentation |
Decodes an audio or video file with av, downmixed to mono and resampled to 16 kHz.
load_audio(file)
file |
Path to an audio or video file in any format FFmpeg reads. |
Numeric vector of samples in [-1, 1].
mp3 <- system.file("samples", "Synapsis-Wonderland.mp3", package = "av")
samples <- load_audio(mp3)
length(samples) / 16000 # seconds
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.