ms_get_tts_token: Get Microsoft Text To Speech (TTS) or Cognitive Services...

View source: R/ms_tts_auth.R

ms_get_tts_tokenR Documentation

Get Microsoft Text To Speech (TTS) or Cognitive Services Token from API Key

Description

Get Microsoft Text To Speech (TTS) or Cognitive Services Token from API Key

Usage

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

ms_auth_url(region = ms_regions())

ms_expired_token(token = NULL)

Arguments

api_key

Microsoft Cognitive Services API key

region

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

token

An authentication of class token, likely from ms_get_tts_token

Value

A list of the request, and token

Examples

if (ms_valid_tts_key()) {
   token = ms_get_tts_token()
}

mscstts documentation built on June 10, 2022, 5:11 p.m.