get_raw_text: Get subtitles text

View source: R/coerce_subtitles.R

get_raw_textR Documentation

Get subtitles text

Description

This function extracts the raw text content of subtitles objects as a character string.

Usage

get_raw_text(x, collapse = " ")

Arguments

x

an object of class subtitles or multisubtitles.

collapse

a character string to separate the subtitles lines.

Value

A character string.

Examples

f <- system.file("extdata", "ex_subrip.srt", package = "subtools")
s <- read_subtitles(f)
get_raw_text(s)
cat(get_raw_text(s, collapse = "\n"))


subtools documentation built on March 24, 2026, 5:07 p.m.