Share via


AudioTranslationOptions Constructors

Definition

Overloads

AudioTranslationOptions()

Initializes a new instance ofAudioTranslationOptions.

AudioTranslationOptions(String, BinaryData)

Initializes a new instance of AudioTranslationOptions.

AudioTranslationOptions()

Source:
AudioTranslationOptions.cs

Initializes a new instance ofAudioTranslationOptions.

public AudioTranslationOptions ();
Public Sub New ()

Applies to

AudioTranslationOptions(String, BinaryData)

Source:
AudioTranslationOptions.cs

Initializes a new instance of AudioTranslationOptions.

public AudioTranslationOptions (string deploymentName, BinaryData audioData);
new Azure.AI.OpenAI.AudioTranslationOptions : string * BinaryData -> Azure.AI.OpenAI.AudioTranslationOptions
Public Sub New (deploymentName As String, audioData As BinaryData)

Parameters

deploymentName
String

The deployment name to use for audio translation.

audioData
BinaryData

The audio data to translate. This must be the binary content of a file in one of the supported media formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, webm.

Exceptions

deploymentName or audioData is null.

deploymentName is an empty string.

Remarks

By default, audio data will be provided as if it were from an audio file named "file.wav". For other audio formats, set an appropriate filename via the Filename property such that the format can be inferred. For example, setting Filename to "foo.mp3" for an MP3 stream will ensure that the audio data is handled as MP3 input.

Applies to