getMedia.Rd
Downloads a given media track for a given transcript.
getMedia(
labbcat.url,
id,
track.suffix = "",
mime.type = "audio/wav",
path = ""
)
URL to the LaBB-CAT instance.
A transcript ID (i.e. transcript name).
The track suffix of the media.
The MIME type of the media, e.g. "audio/wav" or "application/f0".
Optional path to directory where the file should be saved.
The name of the file, which is saved in the current directory, or the given path if specified
if (FALSE) {
## Download the WAV file for BR2044_OllyOhlson.eaf
wav <- getMedia(labbcat.url, "BR2044_OllyOhlson.eaf")
## Download the 'QuakeFace' video file for BR2044_OllyOhlson.eaf
quakeFaceMp4 <- getMedia(labbcat.url, "BR2044_OllyOhlson.eaf", "_face", "video/mp4")
}