get_wav_length | R Documentation |
Get the length of a recording in seconds
get_wav_length(path, return_numeric = FALSE)
path |
Character. Path to wave file. |
return_numeric |
Logical. Return numeric or character? |
Length of recording in seconds
f <- tempfile()
w <- tuneR::sine(440, duration = 100000)
tuneR::writeWave(w, f)
get_wav_length(f)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.