TextToSpeechResponseUpdateExtensions.ToTextToSpeechResponseAsync Metod

Definition

Kombinerar TextToSpeechResponseUpdate instanser till en enda 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)

Parametrar

updates
IAsyncEnumerable<TextToSpeechResponseUpdate>

Uppdateringarna som ska kombineras.

cancellationToken
CancellationToken

Övervaka CancellationToken för annulleringsbegäranden. Standardvärdet är None.

Returer

Den kombinerade TextToSpeechResponse.

Gäller för