LoggingTextToSpeechClient.GetStreamingAudioAsync Méthode

Définition

Envoie du contenu texte au modèle et revient en continu la voix audio générée.

public override System.Collections.Generic.IAsyncEnumerable<Microsoft.Extensions.AI.TextToSpeechResponseUpdate> GetStreamingAudioAsync(string text, Microsoft.Extensions.AI.TextToSpeechOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
override this.GetStreamingAudioAsync : string * Microsoft.Extensions.AI.TextToSpeechOptions * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<Microsoft.Extensions.AI.TextToSpeechResponseUpdate>
Public Overrides Function GetStreamingAudioAsync (text As String, Optional options As TextToSpeechOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of TextToSpeechResponseUpdate)

Paramètres

text
String

Texte à synthétiser en parole.

options
TextToSpeechOptions

Options de synthèse vocale pour configurer la requête.

cancellationToken
CancellationToken

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

Retours

Les mises à jour vocales audio représentant la sortie diffusée.

S’applique à