SpeechGenerationOptions Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Azure SDK for .NET
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for