SpeechToTextClientBuilder.Use Method
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.
Overloads
Use(Func<ISpeechToTextClient,ISpeechToTextClient>) |
Adds a factory for an intermediate audio transcription client to the audio transcription client pipeline. |
Use(Func<ISpeechToTextClient,IServiceProvider,ISpeechToTextClient>) |
Adds a factory for an intermediate audio transcription client to the audio transcription client pipeline. |
Use(Func<ISpeechToTextClient,ISpeechToTextClient>)
- Source:
- SpeechToTextClientBuilder.cs
Adds a factory for an intermediate audio transcription client to the audio transcription client pipeline.
public:
Microsoft::Extensions::AI::SpeechToTextClientBuilder ^ Use(Func<Microsoft::Extensions::AI::ISpeechToTextClient ^, Microsoft::Extensions::AI::ISpeechToTextClient ^> ^ clientFactory);
public Microsoft.Extensions.AI.SpeechToTextClientBuilder Use(Func<Microsoft.Extensions.AI.ISpeechToTextClient,Microsoft.Extensions.AI.ISpeechToTextClient> clientFactory);
member this.Use : Func<Microsoft.Extensions.AI.ISpeechToTextClient, Microsoft.Extensions.AI.ISpeechToTextClient> -> Microsoft.Extensions.AI.SpeechToTextClientBuilder
Public Function Use (clientFactory As Func(Of ISpeechToTextClient, ISpeechToTextClient)) As SpeechToTextClientBuilder
Parameters
- clientFactory
- Func<ISpeechToTextClient,ISpeechToTextClient>
The client factory function.
Returns
The updated SpeechToTextClientBuilder instance.
Applies to
Use(Func<ISpeechToTextClient,IServiceProvider,ISpeechToTextClient>)
- Source:
- SpeechToTextClientBuilder.cs
Adds a factory for an intermediate audio transcription client to the audio transcription client pipeline.
public:
Microsoft::Extensions::AI::SpeechToTextClientBuilder ^ Use(Func<Microsoft::Extensions::AI::ISpeechToTextClient ^, IServiceProvider ^, Microsoft::Extensions::AI::ISpeechToTextClient ^> ^ clientFactory);
public Microsoft.Extensions.AI.SpeechToTextClientBuilder Use(Func<Microsoft.Extensions.AI.ISpeechToTextClient,IServiceProvider,Microsoft.Extensions.AI.ISpeechToTextClient> clientFactory);
member this.Use : Func<Microsoft.Extensions.AI.ISpeechToTextClient, IServiceProvider, Microsoft.Extensions.AI.ISpeechToTextClient> -> Microsoft.Extensions.AI.SpeechToTextClientBuilder
Public Function Use (clientFactory As Func(Of ISpeechToTextClient, IServiceProvider, ISpeechToTextClient)) As SpeechToTextClientBuilder
Parameters
- clientFactory
- Func<ISpeechToTextClient,IServiceProvider,ISpeechToTextClient>
The client factory function.
Returns
The updated SpeechToTextClientBuilder instance.