TranscriptionClient.TranscribeAsync 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 the provided audio stream.
public virtual System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Speech.Transcription.TranscriptionResult>> TranscribeAsync(Azure.AI.Speech.Transcription.TranscriptionOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member TranscribeAsync : Azure.AI.Speech.Transcription.TranscriptionOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Speech.Transcription.TranscriptionResult>>
override this.TranscribeAsync : Azure.AI.Speech.Transcription.TranscriptionOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Speech.Transcription.TranscriptionResult>>
Public Overridable Function TranscribeAsync (options As TranscriptionOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ClientResult(Of TranscriptionResult))
Parameters
- options
- TranscriptionOptions
The transcription options containing audio and configuration.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
options is null.