srt_to_df: Subtitles .srt file to dataframe

Description Usage Arguments Value Author(s) Examples

View source: R/srt_to_df.R

Description

Convert subtitles .srt file to a dataframe.

Usage

1
srt_to_df(file_name)

Arguments

file_name

string with a filename or path to the .srt file

Value

a dataframe with columns: id, content, time_start, time_end, source.

Author(s)

George Moroz <agricolamz@gmail.com>

Examples

1
srt_to_df(system.file("extdata", "test.srt", package = "phonfieldwork"))

Example output

  id content time_start time_end   source
0  1       t      0.013    0.248 test.srt
1  2       e      0.248    0.396 test.srt
2  3       s      0.396    0.512 test.srt
3  4       t      0.512    0.653 test.srt

phonfieldwork documentation built on March 3, 2021, 1:12 a.m.