次の方法で共有


LoggingTextToSpeechClient.GetStreamingAudioAsync メソッド

定義

テキスト コンテンツをモデルに送信し、生成されたオーディオ音声をストリーム バックします。

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)

パラメーター

text
String

音声に合成するテキスト。

options
TextToSpeechOptions

要求を構成するためのテキスト読み上げオプション。

cancellationToken
CancellationToken

キャンセル要求を監視する CancellationToken 。 既定値は、None です。

返品

ストリーミングされた出力を表すオーディオ音声が更新されます。

適用対象