OpenAIClient.GetAudioTranscriptionAsync Method
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.
Transcribes audio into the input language.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.OpenAI.AudioTranscription>> GetAudioTranscriptionAsync (Azure.AI.OpenAI.AudioTranscriptionOptions audioTranscriptionOptions, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAudioTranscriptionAsync : Azure.AI.OpenAI.AudioTranscriptionOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.OpenAI.AudioTranscription>>
override this.GetAudioTranscriptionAsync : Azure.AI.OpenAI.AudioTranscriptionOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.OpenAI.AudioTranscription>>
Public Overridable Function GetAudioTranscriptionAsync (audioTranscriptionOptions As AudioTranscriptionOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of AudioTranscription))
Parameters
- audioTranscriptionOptions
- AudioTranscriptionOptions
Transcription request. Requesting format 'json' will result on only the 'text' field being set. For more output data use 'verbose_json.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
audioTranscriptionOptions
or audioTranscriptionOptions.DeploymentName.DeploymentName
is null.
audioTranscriptionOptions.DeploymentName.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