ISpeechToTextClient.GetStreamingTextAsync メソッド

定義

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

public System.Collections.Generic.IAsyncEnumerable<Microsoft.Extensions.AI.SpeechToTextResponseUpdate> GetStreamingTextAsync(System.IO.Stream audioSpeechStream, Microsoft.Extensions.AI.SpeechToTextOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetStreamingTextAsync : System.IO.Stream * Microsoft.Extensions.AI.SpeechToTextOptions * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<Microsoft.Extensions.AI.SpeechToTextResponseUpdate>
Public Function GetStreamingTextAsync (audioSpeechStream As Stream, Optional options As SpeechToTextOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of SpeechToTextResponseUpdate)

パラメーター

audioSpeechStream
Stream

送信するオーディオ音声ストリーム。

options
SpeechToTextOptions

要求を構成するための音声テキスト変換オプション。

cancellationToken
CancellationToken

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

返品

ストリーミングされた出力を表すテキストが更新されます。

適用対象