tts_auth {text2speech} | R Documentation |
Authentication for Text-to-Speech (Speech Synthesis) Engines
Description
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 |
Details
To determine the availability of Coqui TTS, tts_auth()
examines whether the tts
executable exists on local system.
Value
A logical indicator of authorization
Examples
# 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")
[Package text2speech version 1.0.0 Index]