Share via


SpeechToTextClientBuilder Class

Definition

A builder for creating pipelines of ISpeechToTextClient.

public ref class SpeechToTextClientBuilder sealed
[System.Diagnostics.CodeAnalysis.Experimental("MEAI001")]
public sealed class SpeechToTextClientBuilder
public sealed class SpeechToTextClientBuilder
[<System.Diagnostics.CodeAnalysis.Experimental("MEAI001")>]
type SpeechToTextClientBuilder = class
type SpeechToTextClientBuilder = class
Public NotInheritable Class SpeechToTextClientBuilder
Inheritance
SpeechToTextClientBuilder
Attributes

Constructors

SpeechToTextClientBuilder(Func<IServiceProvider,ISpeechToTextClient>)

Initializes a new instance of the SpeechToTextClientBuilder class.

SpeechToTextClientBuilder(ISpeechToTextClient)

Initializes a new instance of the SpeechToTextClientBuilder class.

Methods

Build(IServiceProvider)

Builds an ISpeechToTextClient that represents the entire pipeline. Calls to this instance will pass through each of the pipeline stages in turn.

Use(Func<ISpeechToTextClient,IServiceProvider,ISpeechToTextClient>)

Adds a factory for an intermediate audio transcription client to the audio transcription client pipeline.

Use(Func<ISpeechToTextClient,ISpeechToTextClient>)

Adds a factory for an intermediate audio transcription client to the audio transcription client pipeline.

Extension Methods

ConfigureOptions(SpeechToTextClientBuilder, Action<SpeechToTextOptions>)

Adds a callback that configures a SpeechToTextOptions to be passed to the next client in the pipeline.

UseLogging(SpeechToTextClientBuilder, ILoggerFactory, Action<LoggingSpeechToTextClient>)

Adds logging to the audio transcription client pipeline.

Applies to