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입니다.

반품

스트리밍된 출력을 나타내는 오디오 음성 업데이트입니다.

구현

적용 대상