Learn R Programming

voice (version 0.4.21)

get_tdur: Time duration

Description

Get time duration from a data frame in RTTM standard.

Usage

get_tdur(x)

Value

Numeric vector containing the time duration in seconds.

Arguments

x

A data frame in RTTM standard. See 'voice::read_rttm'.

Examples

Run this code
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)

Run the code above in your browser using DataLab