labelPadding: Pad labels with interval

Description Usage Arguments Value Examples

View source: R/labels.R

Description

Takes labels from Google Speech API transcript and pads the time by a specified number of seconds.

Usage

1
labelPadding(t, pad = 0.5, max_t = NULL)

Arguments

t

Transcript from Google Speech API

pad

Amount of time (in seconds) to add to start and end

max_t

Optional. The duration of the file, so padding does not exceed length of file.

Value

A modified Google Speech API transcript object

Examples

1
2
3
4
## Not run: 
labelPadding(t, pad=2, max_t=duration(wave))

## End(Not run)

sonicscrewdriver documentation built on May 2, 2021, 5:06 p.m.