DelegatingSpeechToTextClient.GetStreamingTextAsync Método

Definição

Envia conteúdo de voz áudio para o modelo e transmite de volta o texto gerado.

public virtual System.Collections.Generic.IAsyncEnumerable<Microsoft.Extensions.AI.SpeechToTextResponseUpdate> GetStreamingTextAsync(System.IO.Stream audioSpeechStream, Microsoft.Extensions.AI.SpeechToTextOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetStreamingTextAsync : System.IO.Stream * Microsoft.Extensions.AI.SpeechToTextOptions * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<Microsoft.Extensions.AI.SpeechToTextResponseUpdate>
override this.GetStreamingTextAsync : System.IO.Stream * Microsoft.Extensions.AI.SpeechToTextOptions * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<Microsoft.Extensions.AI.SpeechToTextResponseUpdate>
Public Overridable Function GetStreamingTextAsync (audioSpeechStream As Stream, Optional options As SpeechToTextOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of SpeechToTextResponseUpdate)

Parâmetros

audioSpeechStream
Stream

O fluxo de áudio para enviar.

options
SpeechToTextOptions

As opções de voz para texto para configurar o pedido.

cancellationToken
CancellationToken

O CancellationToken para monitorizar pedidos de cancelamento. A predefinição é None.

Devoluções

O texto atualiza-se representando a saída transmitida.

Implementações

Aplica-se a