Class TextToSpeechVoiceListRequest
- Namespace
- Uralstech.UCloud.TextToSpeech.Voices
Returns a list of Voice supported for synthesis. Response type is TextToSpeechVoiceListResponse.
public class TextToSpeechVoiceListRequest : ITextToSpeechGetRequest, ITextToSpeechRequest
- Inheritance
-
objectTextToSpeechVoiceListRequest
- Implements
Constructors
TextToSpeechVoiceListRequest(string, bool)
public TextToSpeechVoiceListRequest(string languageCode = null, bool useBetaApi = false)
Parameters
languageCode
stringSee LanguageCode.
useBetaApi
boolShould 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.