SpeechToTextResponseUpdateExtensions.ToSpeechToTextResponseAsync Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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
Mises à jour à combiner.
- cancellationToken
- CancellationToken
À CancellationToken surveiller pour les demandes d’annulation. La valeur par défaut est None.
Retours
SpeechToTextResponseCombiné .