tts_auth: Authentication for Text-to-Speech (Speech Synthesis) Engines

View source: R/tts_auth.R

tts_authR 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")


text2speech documentation built on July 26, 2023, 5:30 p.m.