Nothing
#' @title List available voices
#' @description Retrieve a list of available voices
#' @param language An ISO 3166 country identification tag.
#' @param token Optionally, a pagination token.
#' @param \dots Additional arguments passed to \code{\link{pollyHTTP}}.
#' @return A data frame of available names.
#' @examples
#' \dontrun{
#' list_voices(language = "cy-GB")
#' }
#' @export
list_voices <-
function(language = "en-US",
token,
...)
{
query <- list(LanguageCode = language)
if (!missing(token)) {
query[["NextToken"]] <- token
}
out <- pollyHTTP(action = "voices", verb = "GET", query = query, ...)
structure(out[["Voices"]], NextToken = out[["NextToken"]])
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.