get_tdur | R Documentation |
Get time duration from a data frame in RTTM standard.
get_tdur(x)
x |
A data frame in RTTM standard. See 'voice::read_rttm'. |
Numeric vector containing the time duration in seconds.
library(voice)
url0 <- 'https://raw.githubusercontent.com/filipezabala/voiceAudios/main/rttm/sherlock0.rttm'
download.file(url0, destfile = paste0(tempdir(), '/sherlock0.rttm'))
rttm <- voice::read_rttm(tempdir())
(gtd <- voice::get_tdur(rttm$sherlock0.rttm))
class(gtd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.