SpeechToTextResponseUpdateExtensions.ToSpeechToTextResponseAsync Metodo

Definizione

SpeechToTextResponseUpdate Combina le istanze in un singolo SpeechToTextResponseoggetto .

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

Parametri

updates
IAsyncEnumerable<SpeechToTextResponseUpdate>

Aggiornamenti da combinare.

cancellationToken
CancellationToken

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

Valori restituiti

Oggetto combinato SpeechToTextResponse.

Si applica a