Condividi tramite


TextToSpeechResponseUpdateExtensions.ToTextToSpeechResponseAsync Metodo

Definizione

TextToSpeechResponseUpdate Combina le istanze in un singolo TextToSpeechResponseoggetto .

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)

Parametri

updates
IAsyncEnumerable<TextToSpeechResponseUpdate>

Aggiornamenti da combinare.

cancellationToken
CancellationToken

Oggetto CancellationToken da monitorare per le richieste di annullamento. Il valore predefinito è None.

Valori restituiti

Oggetto combinato TextToSpeechResponse.

Si applica a