ConfigureOptionsSpeechToTextClient Class

Definition

Represents a delegating chat client that configures a SpeechToTextOptions instance used by the remainder of the pipeline.

public ref class ConfigureOptionsSpeechToTextClient sealed : Microsoft::Extensions::AI::DelegatingSpeechToTextClient
[System.Diagnostics.CodeAnalysis.Experimental("MEAI001")]
public sealed class ConfigureOptionsSpeechToTextClient : Microsoft.Extensions.AI.DelegatingSpeechToTextClient
public sealed class ConfigureOptionsSpeechToTextClient : Microsoft.Extensions.AI.DelegatingSpeechToTextClient
[<System.Diagnostics.CodeAnalysis.Experimental("MEAI001")>]
type ConfigureOptionsSpeechToTextClient = class
    inherit DelegatingSpeechToTextClient
type ConfigureOptionsSpeechToTextClient = class
    inherit DelegatingSpeechToTextClient
Public NotInheritable Class ConfigureOptionsSpeechToTextClient
Inherits DelegatingSpeechToTextClient
Inheritance
ConfigureOptionsSpeechToTextClient
Attributes

Constructors

ConfigureOptionsSpeechToTextClient(ISpeechToTextClient, Action<SpeechToTextOptions>)

Initializes a new instance of the ConfigureOptionsSpeechToTextClient class with the specified configure callback.

Properties

InnerClient

Gets the inner ISpeechToTextClient.

(Inherited from DelegatingSpeechToTextClient)

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

(Inherited from DelegatingSpeechToTextClient)
Dispose(Boolean)

Provides a mechanism for releasing unmanaged resources.

(Inherited from DelegatingSpeechToTextClient)
GetService(Type, Object)

Asks the ISpeechToTextClient for an object of the specified type serviceType.

(Inherited from DelegatingSpeechToTextClient)
GetStreamingTextAsync(Stream, SpeechToTextOptions, CancellationToken)
GetTextAsync(Stream, SpeechToTextOptions, CancellationToken)

Extension Methods

AsBuilder(ISpeechToTextClient)

Creates a new SpeechToTextClientBuilder using innerClient as its inner client.

GetService<TService>(ISpeechToTextClient, Object)

Asks the ISpeechToTextClient for an object of type TService.

GetStreamingTextAsync(ISpeechToTextClient, DataContent, SpeechToTextOptions, CancellationToken)

Generates text from speech providing a single audio speech DataContent.

GetTextAsync(ISpeechToTextClient, DataContent, SpeechToTextOptions, CancellationToken)

Generates text from speech providing a single audio speech DataContent.

Applies to