Class TextToSpeechSynthesisRequest
- Namespace
- Uralstech.UCloud.TextToSpeech.Synthesis
Request to synthesize audio from the given text. Response type is TextToSpeechSynthesisResponse.
public class TextToSpeechSynthesisRequest : ITextToSpeechPostRequest, ITextToSpeechRequest
- Inheritance
-
objectTextToSpeechSynthesisRequest
- Implements
Constructors
TextToSpeechSynthesisRequest(bool)
public TextToSpeechSynthesisRequest(bool useBetaApi = false)
Parameters
useBetaApi
boolShould the request use the Beta API?
Fields
AudioConfiguration
The configuration of the synthesized audio.
public TextToSpeechSynthesisAudioConfiguration AudioConfiguration
Field Value
EnableTimePointing
Whether and what timepoints are returned in the response. Requires the beta API.
public TextToSpeechSynthesisTimePointing EnableTimePointing
Field Value
Input
The Synthesizer requires either plain text or SSML as input.
public TextToSpeechSynthesisInput Input
Field Value
Voice
The desired voice of the synthesized audio.
public TextToSpeechSynthesisVoiceSelection Voice
Field Value
Properties
ContentType
The MIME type of the request content.
public string ContentType { get; }
Property Value
- string
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.
GetUtf8EncodedData()
Converts the request object to a UTF-8 encoded string.
public string GetUtf8EncodedData()
Returns
- string
The string data.