次の方法で共有


TextToSpeechResponseUpdateExtensions.ToTextToSpeechResponseAsync メソッド

定義

TextToSpeechResponseUpdateインスタンスを 1 つのTextToSpeechResponseに結合します。

public static System.Threading.Tasks.Task<Microsoft.Extensions.AI.TextToSpeechResponse> ToTextToSpeechResponseAsync(this System.Collections.Generic.IAsyncEnumerable<Microsoft.Extensions.AI.TextToSpeechResponseUpdate> updates, System.Threading.CancellationToken cancellationToken = default);
static member ToTextToSpeechResponseAsync : System.Collections.Generic.IAsyncEnumerable<Microsoft.Extensions.AI.TextToSpeechResponseUpdate> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Extensions.AI.TextToSpeechResponse>
<Extension()>
Public Function ToTextToSpeechResponseAsync (updates As IAsyncEnumerable(Of TextToSpeechResponseUpdate), Optional cancellationToken As CancellationToken = Nothing) As Task(Of TextToSpeechResponse)

パラメーター

updates
IAsyncEnumerable<TextToSpeechResponseUpdate>

結合する更新プログラム。

cancellationToken
CancellationToken

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

返品

結合された TextToSpeechResponse

適用対象