Learn R Programming

mscstts (version 0.6.4)

ms_get_tts_token: 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)

Value

A list of the request, and token

Arguments

api_key

Microsoft Cognitive Services API key

region

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

token

An authentication of class token, likely from ms_get_tts_token

Examples

Run this code
if (ms_valid_tts_key()) {
   token = ms_get_tts_token()
}

Run the code above in your browser using DataLab