Condividi tramite


DelegatingTextToSpeechClient.GetStreamingAudioAsync Metodo

Definizione

Invia contenuto di testo al modello e trasmette il parlato audio generato.

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

Parametri

text
String

Testo da sintetizzare in voce.

options
TextToSpeechOptions

Opzioni di sintesi vocale per configurare la richiesta.

cancellationToken
CancellationToken

Oggetto CancellationToken da monitorare per le richieste di annullamento. Il valore predefinito è None.

Valori restituiti

Aggiornamenti vocali audio che rappresentano l'output trasmesso.

Implementazioni

Si applica a