powered by
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.
option(ms_tts_key)
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())
ms_have_tts_key(api_key = NULL)
ms_set_tts_key(api_key)
ms_valid_tts_key(api_key = NULL, region = ms_regions())
Microsoft Cognitive Services API key
Should the function error if api_key = NULL?
api_key = NULL
Subscription region for your key. See https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/overview
API key
# NOT RUN { res = ms_get_tts_key(error = FALSE) # }
Run the code above in your browser using DataLab