AudioTranscriptionOptions 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
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
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