tts_auth | R Documentation |
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.
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()
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 |
To determine the availability of Coqui TTS, tts_auth()
examines whether the tts
executable exists on local system.
A logical indicator of authorization
# 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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.