Learn R Programming

mscstts (version 0.6.4)

ms_get_tts_key: Find API Key for Microsoft Text To Speech (TTS) or Cognitive Services

Description

Determines if option(ms_tts_key) or option(ms_tts_key) is set. If not, it stops and returns an error. If so, returns the value.

Usage

ms_get_tts_key(api_key = NULL, error = TRUE)

ms_have_tts_key(api_key = NULL)

ms_set_tts_key(api_key)

ms_valid_tts_key(api_key = NULL, region = ms_regions())

Value

API key

Arguments

api_key

Microsoft Cognitive Services API key

error

Should the function error if api_key = NULL?

region

Subscription region for your key. See https://learn.microsoft.com/en-us/azure/cognitive-services/speech-service/overview

Examples

Run this code
res = ms_get_tts_key(error = FALSE)

Run the code above in your browser using DataLab