SpeechToTextClientExtensions.GetStreamingTextAsync Metod

Definition

Genererar text från tal som ger ett enda ljudtal 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)

Parametrar

client
ISpeechToTextClient

Klienten.

audioSpeechContent
DataContent

Det enda talinnehållet för ljud.

options
SpeechToTextOptions

Tal till text-alternativ för att konfigurera begäran.

cancellationToken
CancellationToken

Övervaka CancellationToken för annulleringsbegäranden. Standardvärdet är None.

Returer

Texten som genereras av klienten.

Gäller för