SpeechToTextResponseUpdateExtensions.ToSpeechToTextResponseAsync 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.
Combines SpeechToTextResponseUpdate instances into a single SpeechToTextResponse.
public static System.Threading.Tasks.Task<Microsoft.Extensions.AI.SpeechToTextResponse> ToSpeechToTextResponseAsync(this System.Collections.Generic.IAsyncEnumerable<Microsoft.Extensions.AI.SpeechToTextResponseUpdate> updates, System.Threading.CancellationToken cancellationToken = default);
static member ToSpeechToTextResponseAsync : System.Collections.Generic.IAsyncEnumerable<Microsoft.Extensions.AI.SpeechToTextResponseUpdate> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Extensions.AI.SpeechToTextResponse>
<Extension()>
Public Function ToSpeechToTextResponseAsync (updates As IAsyncEnumerable(Of SpeechToTextResponseUpdate), Optional cancellationToken As CancellationToken = Nothing) As Task(Of SpeechToTextResponse)
Parameters
The updates to be combined.
- cancellationToken
- CancellationToken
The CancellationToken to monitor for cancellation requests. The default is None.
Returns
The combined SpeechToTextResponse.