Share via


SpeechGenerationOptions Constructors

Definition

Overloads

SpeechGenerationOptions()

Initializes a new instance of SpeechGenerationOptions.

SpeechGenerationOptions(String, String, SpeechVoice)

Initializes a new instance of SpeechGenerationOptions.

SpeechGenerationOptions()

Source:
SpeechGenerationOptions.cs

Initializes a new instance of SpeechGenerationOptions.

public SpeechGenerationOptions ();
Public Sub New ()

Applies to

SpeechGenerationOptions(String, String, SpeechVoice)

Source:
SpeechGenerationOptions.cs

Initializes a new instance of SpeechGenerationOptions.

public SpeechGenerationOptions (string deploymentName, string input, Azure.AI.OpenAI.SpeechVoice voice);
new Azure.AI.OpenAI.SpeechGenerationOptions : string * string * Azure.AI.OpenAI.SpeechVoice -> Azure.AI.OpenAI.SpeechGenerationOptions
Public Sub New (deploymentName As String, input As String, voice As SpeechVoice)

Parameters

deploymentName
String

The deployment name to use for text-to-speech.

input
String

The text to generate audio for. The maximum length is 4096 characters.

voice
SpeechVoice

The voice to use for text-to-speech.

Exceptions

deploymentName or input or voice is null.

deploymentName is an empty string.

Applies to