TextToSpeechResponseUpdateExtensions.ToTextToSpeechResponseAsync Méthode

Définition

Combine des TextToSpeechResponseUpdate instances en un seul TextToSpeechResponse.

public static System.Threading.Tasks.Task<Microsoft.Extensions.AI.TextToSpeechResponse> ToTextToSpeechResponseAsync(this System.Collections.Generic.IAsyncEnumerable<Microsoft.Extensions.AI.TextToSpeechResponseUpdate> updates, System.Threading.CancellationToken cancellationToken = default);
static member ToTextToSpeechResponseAsync : System.Collections.Generic.IAsyncEnumerable<Microsoft.Extensions.AI.TextToSpeechResponseUpdate> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Extensions.AI.TextToSpeechResponse>
<Extension()>
Public Function ToTextToSpeechResponseAsync (updates As IAsyncEnumerable(Of TextToSpeechResponseUpdate), Optional cancellationToken As CancellationToken = Nothing) As Task(Of TextToSpeechResponse)

Paramètres

updates
IAsyncEnumerable<TextToSpeechResponseUpdate>

Mises à jour à combiner.

cancellationToken
CancellationToken

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

Retours

TextToSpeechResponseCombiné .

S’applique à