Convert subtitles .srt file to a dataframe.
srt_to_df(file_name)
| file_name | string with a filename or path to the .srt file |
|---|
a dataframe with columns: id, content,
time_start, time_end, source.
#> 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