SpeechToTextClientExtensions.GetStreamingTextAsync メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
1 つの音声音声 DataContentを提供する音声からテキストを生成します。
public static System.Collections.Generic.IAsyncEnumerable<Microsoft.Extensions.AI.SpeechToTextResponseUpdate> GetStreamingTextAsync(this Microsoft.Extensions.AI.ISpeechToTextClient client, Microsoft.Extensions.AI.DataContent audioSpeechContent, Microsoft.Extensions.AI.SpeechToTextOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
static member GetStreamingTextAsync : Microsoft.Extensions.AI.ISpeechToTextClient * Microsoft.Extensions.AI.DataContent * Microsoft.Extensions.AI.SpeechToTextOptions * System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<Microsoft.Extensions.AI.SpeechToTextResponseUpdate>
<Extension()>
Public Function GetStreamingTextAsync (client As ISpeechToTextClient, audioSpeechContent As DataContent, Optional options As SpeechToTextOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of SpeechToTextResponseUpdate)
パラメーター
- client
- ISpeechToTextClient
クライアント。
- audioSpeechContent
- DataContent
1 つのオーディオ音声コンテンツ。
- options
- SpeechToTextOptions
要求を構成するための音声テキスト変換オプション。
- cancellationToken
- CancellationToken
キャンセル要求を監視する CancellationToken 。 既定値は None です。
戻り値
クライアントによって生成されたテキスト。