newTranscript.Rd
This function adds a transcript and optionally a media file to the corpus.
newTranscript(
labbcat.url,
transcript,
media = NULL,
transcript.type = NULL,
corpus = NULL,
episode = NULL,
no.progress = FALSE
)
URL to the LaBB-CAT instance
The path to the transcript to upload.
The path to the media to upload, if any.
The transcript type.
The corpus to add the transcript to.
The transcript's episode.
TRUE to supress visual progress bar. Otherwise, progress bar will be shown when interactive().
The ID of the new transcript in the corpus
For this function to work, the credentials used to connect to the server must have at least 'edit' access.
if (FALSE) {
## Get attributes for new transcript
corpus <- getCorpusIds(labbcat.url)[1]
transcript.type.layer <- getLayer(labbcat.url, "transcript_type")
transcript.type <- transcript.type.layer$validLabels[[1]]
## upload transcript
newTranscript(
labbcat.url, "my-transcript.eaf", "my-transcript.wav",
"", transcript.type, corpus, "episode-1")
}