Partilhar via


TextToSpeechResponseUpdateExtensions.ToTextToSpeechResponseAsync Método

Definição

Combina instâncias TextToSpeechResponseUpdate em um único 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)

Parâmetros

updates
IAsyncEnumerable<TextToSpeechResponseUpdate>

As atualizações a serem combinadas.

cancellationToken
CancellationToken

O CancellationToken para monitorar solicitações de cancelamento. O padrão é None.

Retornos

O combinado TextToSpeechResponse.

Aplica-se a