ms_choose_voice {conrad}R Documentation

Provide default voice when not provided

Description

If 'voice' argument is not supplied to ms_synthesize(), obtain full list of voices for a specified region and by default, use the first voice in that list.

Usage

ms_choose_voice(
  api_key = NULL,
  gender = c("Female", "Male"),
  language = "en-US",
  region = "westus"
)

Arguments

api_key

Microsoft Azure Cognitive Services API key

gender

Sex of speaker

language

Language to be spoken

region

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

Value

List of gender, language, and full voice name

Examples

## Not run: 
# Default voice whose gender is Female, language is English, and region is 'westus'
ms_choose_voice(gender = "Female", language = "en-US", region = "westus")

## End(Not run)

[Package conrad version 1.0.0 Index]