LoggingTextToSpeechClient.GetStreamingAudioAsync Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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.