Freigeben über


TextToSpeechResponseUpdateExtensions.ToTextToSpeechResponseAsync Methode

Definition

Kombiniert TextToSpeechResponseUpdate Instanzen in einem einzelnen 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)

Parameter

updates
IAsyncEnumerable<TextToSpeechResponseUpdate>

Die zu kombinierenden Updates.

cancellationToken
CancellationToken

Der CancellationToken zu überwachende Monitor für Abbruchanforderungen. Der Standardwert lautet None.

Gibt zurück

Die kombinierte TextToSpeechResponse.

Gilt für: