Learn R Programming

nzilbb.labbcat (version 1.0-1)

getMedia: Gets a given media track for a given transcript.

Description

Gets a given media track for a given transcript.

Usage

getMedia(labbcat.url, id, track.suffix = "", mime.type = "audio/wav")

Arguments

labbcat.url

URL to the LaBB-CAT instance

id

A transcript ID (i.e. transcript name)

track.suffix

The track suffix of the media

mime.type

The MIME type of the media

Value

A URL to the given media for the given transcript

See Also

getTranscriptIds

Examples

Run this code
# NOT RUN {
## define the LaBB-CAT URL
labbcat.url <- "https://labbcat.canterbury.ac.nz/demo/"

## Get URL for the WAV file for BR2044_OllyOhlson.eaf
media <- getMedia(labbcat.url, "BR2044_OllyOhlson.eaf")

## Get URL for the 'QuakeFace' video file for BR2044_OllyOhlson.eaf
media <- getMedia(labbcat.url, "BR2044_OllyOhlson.eaf", "_face", "video/mp4")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab