ISpeechToTextClient.GetStreamingTextAsync Méthode

Définition

Envoie du contenu audio vocal au modèle et diffuse le texte généré.

public 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>
Public Function GetStreamingTextAsync (audioSpeechStream As Stream, Optional options As SpeechToTextOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of SpeechToTextResponseUpdate)

Paramètres

audioSpeechStream
Stream

Flux audio à envoyer.

options
SpeechToTextOptions

Options de reconnaissance vocale pour configurer la requête.

cancellationToken
CancellationToken

À CancellationToken surveiller pour les demandes d’annulation. La valeur par défaut est None.

Retours

Le texte est mis à jour représentant la sortie diffusée.

S’applique à