export_printtranscript {act}R Documentation

Export a transcript object to a print transcript

Description

If you want to modify the layout of the print transcripts, create a new layout object with mylayout <- methods::new("layout"), modify the settings and pass it as argument l. In the layout object you may also set additional filters to include/exclude tiers matching regular expressions.

Usage

export_printtranscript(
  t,
  l = NULL,
  outputPath = NULL,
  filterTierNames = NULL,
  filterSectionStartsec = NULL,
  filterSectionEndsec = NULL,
  insert_arrow_annotationID = "",
  header_heading = "",
  header_firstinfo = "",
  collapse = TRUE
)

Arguments

t

Transcript object.

l

Layout object.

outputPath

Character string; path where to save the transcript.

filterTierNames

Vector of character strings; names of tiers to be included. If left unspecified, all tiers will be exported.

filterSectionStartsec

Double; start of selection in seconds.

filterSectionEndsec

Double; end of selection in seconds.

insert_arrow_annotationID

Integer; ID of the annotation in front of which the arrow will be placed.

header_heading

Character string; text that will be used as heading.

header_firstinfo

Character string; text that will used as first information in the header.

collapse

Logical; if FALSE a vector will be created, each element corresponding to one annotation. if TRUE a single string will be created, collapsed by linebreaks \n.

Value

Character string; transcript as text.

See Also

corpus_export, export_eaf, export_exb, export_rpraat, export_srt, export_textgrid

Examples

library(act)

# Get a transcript
t <- examplecorpus@transcripts[[1]]

# Create print transcript
printtranscript <- act::export_printtranscript (t=t)

# Display on screen
cat(printtranscript)


[Package act version 1.1.9 Index]