ms_region: Check if provided region is supported by Speech service

View source: R/ms_region.R

ms_regionR Documentation

Check if provided region is supported by Speech service

Description

If region is supported, this function returns the region. If not supported, throws a warning message.

Usage

ms_region(region = conrad::region)

Arguments

region

Subscription region for API key. For more info, see https://learn.microsoft.com/en-us/azure/cognitive-services/speech-service/regions

Value

Character vector of region

Examples


# Check if westus is supported
ms_region(region = "westus")
# Check if eastus is supported
ms_region(region = "eastus")


conrad documentation built on Sept. 11, 2024, 7:24 p.m.