get_tbeg {voice} | R Documentation |
Time beginning
Description
Get time beginning from a data frame in RTTM standard.
Usage
get_tbeg(x)
Arguments
x |
A data frame in RTTM standard. See 'voice::read_rttm'. |
Value
Numeric vector containing the time beginning in seconds.
Examples
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())
(gtb <- voice::get_tbeg(rttm$sherlock0.rttm))
class(gtb)
[Package voice version 0.4.21 Index]