Table of Contents

Class TextToSpeechSynthesisRequest

Request to synthesize audio from the given text. Response type is TextToSpeechSynthesisResponse.

public class TextToSpeechSynthesisRequest : ITextToSpeechPostRequest, ITextToSpeechRequest
Inheritance
object
TextToSpeechSynthesisRequest
Implements

Constructors

TextToSpeechSynthesisRequest(bool)

public TextToSpeechSynthesisRequest(bool useBetaApi = false)

Parameters

useBetaApi bool

Should the request use the Beta API?

Fields

AudioConfiguration

The configuration of the synthesized audio.

public TextToSpeechSynthesisAudioConfiguration AudioConfiguration

Field Value

TextToSpeechSynthesisAudioConfiguration

EnableTimePointing

Whether and what timepoints are returned in the response. Requires the beta API.

public TextToSpeechSynthesisTimePointing EnableTimePointing

Field Value

TextToSpeechSynthesisTimePointing

Input

The Synthesizer requires either plain text or SSML as input.

public TextToSpeechSynthesisInput Input

Field Value

TextToSpeechSynthesisInput

Voice

The desired voice of the synthesized audio.

public TextToSpeechSynthesisVoiceSelection Voice

Field Value

TextToSpeechSynthesisVoiceSelection

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.