Skip to contents

Verify the authentication status of different text-to-speech engines, including Amazon Polly, Coqui TTS, Google Cloud Text-to-Speech API, and Microsoft Cognitive Services Text to Speech REST API.

Usage

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

tts_amazon_auth(key_or_json_file = NULL, ...)

tts_google_auth(key_or_json_file = NULL, ...)

tts_microsoft_auth(key_or_json_file = NULL, ...)

tts_coqui_auth()

Arguments

service

Service to use (Amazon, Google, Microsoft, or Coqui)

key_or_json_file

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

...

Additional arguments

Value

A logical indicator of authorization

Details

To determine the availability of Coqui TTS, tts_auth() examines whether the tts executable exists on local system.

Examples

if (FALSE) {
# Amazon Polly
tts_auth("amazon")

# Google Cloud Text-to-Speech API
tts_auth("google")

# Microsoft Cognitive Services Text to Speech REST API
tts_auth("microsoft")

# Coqui TTS
tts_auth("coqui")
}