ISpeechToTextClient.GetStreamingTextAsync メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーディオ音声コンテンツをモデルに送信し、生成されたテキストをストリームバックします。
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 です。
返品
ストリーミングされた出力を表すテキストが更新されます。