R/list_transcriptions.R

Defines functions list_transcriptions

Documented in list_transcriptions

#' @title List AWS Transcribe Jobs
#' @description List AWS Transcribe jobs, by status
#' @param status A character string specifying the status of jobs to retrieve. Use \code{\link{get_transcription}} to retrieve a specific transcription.
#' @param n Optionally, a numeric value indicating the maximum number of results to return (for pagination).
#' @param token Optionally, a \dQuote{NextToken} indicating the next result to retrieve (for pagination).
#' @param \dots Additional arguments passed to \code{\link{transcribeHTTP}}.
#' @return A list.
#' @examples
#' \dontrun{
#' list_transcriptions("COMPLETED")
#' }
#' @export
list_transcriptions <-
function(
    status = c("COMPLETED", "IN_PROGRESS", "FAILED"),
    n = NULL,
    token = NULL,
    ...
) {
    bod <- list()
    bod$Status <- match.arg(status)
    if (!is.null(n)) {
        bod$MaxResults <- n
    }
    if (!is.null(token)) {
        bod$NextToken <- token
    }
    transcribeHTTP(action = "ListTranscriptionJobs", body = bod, ...)$TranscriptionJobSummaries
}

Try the aws.transcribe package in your browser

Any scripts or data that you put into this service are public.

aws.transcribe documentation built on March 13, 2020, 1:36 a.m.