次の方法で共有


DelegatingTextToSpeechClient.GetStreamingAudioAsync メソッド

定義

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

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)

パラメーター

text
String

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

options
TextToSpeechOptions

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

cancellationToken
CancellationToken

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

返品

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

実装

適用対象