audio_time | R Documentation |
Returns the total time of audio files in seconds
audio_time(x, filesRange = NULL, recursive = FALSE)
x |
Either a WAV file or a directory containing WAV files. |
filesRange |
The desired range of directory files (default: |
recursive |
Logical. Should the listing recursively into directories? (default: |
A tibble containing file name <chr> and audio time <dbl> in seconds.
library(voice)
# get path to audio file
path2wav <- list.files(system.file('extdata', package = 'wrassp'),
pattern <- glob2rx('*.wav'), full.names = TRUE)
# Tibble containing file name and audio time
(at <- voice::audio_time(unique(dirname(path2wav))))
str(at)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.