Share via


AudioTranscriptionOptions Constructors

Definition

Overloads

AudioTranscriptionOptions()

Initializes a new instance of AudioTranscriptionOptions.

AudioTranscriptionOptions(String, BinaryData)

Initializes a new instance of AudioTranscriptionOptions.

AudioTranscriptionOptions()

Source:
AudioTranscriptionOptions.cs

Initializes a new instance of AudioTranscriptionOptions.

public AudioTranscriptionOptions ();
Public Sub New ()

Applies to

AudioTranscriptionOptions(String, BinaryData)

Source:
AudioTranscriptionOptions.cs

Initializes a new instance of AudioTranscriptionOptions.

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

Parameters

deploymentName
String

The deployment name to use for audio transcription.

audioData
BinaryData

The audio data to transcribe.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