Language

SpeechToTextClientExtensions.GetStreamingTextAsync メソッド

定義

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 です。

戻り値

クライアントによって生成されたテキスト。

適用対象