saveMedia: Uploads the given media for the given transcript

View source: R/saveMedia.R

saveMediaR Documentation

Uploads the given media for the given transcript

Description

This function upload a media file to LaBB-CAT, associating it with a given transcript.

Usage

saveMedia(labbcat.url, id, media, track.suffix = NULL)

Arguments

labbcat.url

URL to the LaBB-CAT instance

id

The transcript ID.

media

The path to the media to upload.

track.suffix

The track suffix for the media, if any.

Details

For this function to work, the credentials used to connect to the server must have at least 'edit' access.

Value

A named list describing the attributes of the uploaded media:

  • trackSuffix The track suffix of the media

  • mimeType The MIME type of the file

  • url URL to the content of the file

  • name Name of the file in LaBB-CAT

See Also

  • getAvailableMedia

  • deleteMedia

Examples

## Not run: 

## upload transcript
saveMedia(
    labbcat.url, "my-transcript.eaf", "my-transcript/audio/room-mic.wav", "-room")

## End(Not run)

nzilbb.labbcat documentation built on June 8, 2025, 10:57 a.m.