SpeechToTextResponseUpdateExtensions.ToSpeechToTextResponseAsync Méthode

Définition

Combine des SpeechToTextResponseUpdate instances en un seul 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)

Paramètres

updates
IAsyncEnumerable<SpeechToTextResponseUpdate>

Mises à jour à combiner.

cancellationToken
CancellationToken

À CancellationToken surveiller pour les demandes d’annulation. La valeur par défaut est None.

Retours

SpeechToTextResponseCombiné .

S’applique à