SpeechToTextClientBuilder Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 speech-to-text client to the speech-to-text client pipeline. |
| Use(Func<ISpeechToTextClient,ISpeechToTextClient>) |
Adds a factory for an intermediate speech-to-text client to the speech-to-text 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 speech-to-text client pipeline. |
| UseOpenTelemetry(SpeechToTextClientBuilder, ILoggerFactory, String, Action<OpenTelemetrySpeechToTextClient>) |
Adds OpenTelemetry support to the speech-to-text client pipeline, following the OpenTelemetry Semantic Conventions for Generative AI systems. |