Learn R Programming

text2speech (version 0.2.13)

tts_amazon_auth: Authorize Text-to-Speech Engine

Description

Authorize Text-to-Speech Engine

Usage

tts_amazon_auth(key_or_json_file = NULL, ...)

tts_auth( service = c("amazon", "google", "microsoft"), key_or_json_file = NULL, ... )

tts_google_authenticated()

tts_amazon_authenticated()

tts_microsoft_authenticated(...)

tts_google_auth(key_or_json_file = NULL, ...)

tts_microsoft_auth(key_or_json_file = NULL, ...)

Value

A logical indicator of authorization

Arguments

key_or_json_file

Either an API key (for Microsoft) or JSON file (for Google)

...

Additional arguments to pass to use_credentials or ms_get_tts_token

service

type of synthesis engine

Examples

Run this code
tts_auth("google")
tts_auth("microsoft")

tts_google_authenticated()
tts_microsoft_authenticated()

tts_google_auth()
tts_microsoft_auth()
if (requireNamespace("aws.polly", quietly = TRUE)) {
tts_auth("amazon")
tts_amazon_authenticated()
tts_amazon_auth()
}

Run the code above in your browser using DataLab