Table of Contents

Class TextToSpeechVoiceListRequest

Returns a list of Voice supported for synthesis. Response type is TextToSpeechVoiceListResponse.

public class TextToSpeechVoiceListRequest : ITextToSpeechGetRequest, ITextToSpeechRequest
Inheritance
object
TextToSpeechVoiceListRequest
Implements

Constructors

TextToSpeechVoiceListRequest(string, bool)

public TextToSpeechVoiceListRequest(string languageCode = null, bool useBetaApi = false)

Parameters

languageCode string

See LanguageCode.

useBetaApi bool

Should the request use the Beta API?

Fields

LanguageCode

BCP-47 language tag.

public string LanguageCode

Field Value

string

Remarks

If not specified, the API will return all supported voices. If specified, the request call will only return voices that can be used to synthesize this language. For example, if you specify
"en-NZ", all "en-NZ" voices will be returned. If you specify "no", both "no-*" (Norwegian) and "nb-*" (Norwegian Bokmal) voices will be returned.

Properties

UriParent

The base endpoint URI + version.

public string UriParent { get; }

Property Value

string

Methods

GetEndpointUri()

Gets the URI to the API endpoint.

public string GetEndpointUri()

Returns

string

The URI.