Language

SpeechToTextClientExtensions.GetTextAsync メソッド

定義

1 つの音声音声 DataContentを提供する音声からテキストを生成します。

public static System.Threading.Tasks.Task<Microsoft.Extensions.AI.SpeechToTextResponse> GetTextAsync(this Microsoft.Extensions.AI.ISpeechToTextClient client, Microsoft.Extensions.AI.DataContent audioSpeechContent, Microsoft.Extensions.AI.SpeechToTextOptions? options = default, System.Threading.CancellationToken cancellationToken = default);
static member GetTextAsync : Microsoft.Extensions.AI.ISpeechToTextClient * Microsoft.Extensions.AI.DataContent * Microsoft.Extensions.AI.SpeechToTextOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Extensions.AI.SpeechToTextResponse>
<Extension()>
Public Function GetTextAsync (client As ISpeechToTextClient, audioSpeechContent As DataContent, Optional options As SpeechToTextOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of SpeechToTextResponse)

パラメーター

client
ISpeechToTextClient

クライアント。

audioSpeechContent
DataContent

1 つのオーディオ音声コンテンツ。

options
SpeechToTextOptions

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

cancellationToken
CancellationToken

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

戻り値

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

適用対象