TextToSpeechResponseUpdateExtensions.ToTextToSpeechResponseAsync 方法

定义

TextToSpeechResponseUpdate 实例合并为单个 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

适用于