LoggingTextToSpeechClient.GetAudioAsync 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 retourne la voix audio générée.
public override System.Threading.Tasks.Task<Microsoft.Extensions.AI.TextToSpeechResponse> GetAudioAsync(string text, Microsoft.Extensions.AI.TextToSpeechOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
override this.GetAudioAsync : string * Microsoft.Extensions.AI.TextToSpeechOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Extensions.AI.TextToSpeechResponse>
Public Overrides Function GetAudioAsync (text As String, Optional options As TextToSpeechOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TextToSpeechResponse)
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
La voix audio générée.