SpeechToTextClientBuilderServiceCollectionExtensions.AddSpeechToTextClient Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
| Nome | Description |
|---|---|
| AddSpeechToTextClient(IServiceCollection, ISpeechToTextClient, ServiceLifetime) |
Registra um singleton ISpeechToTextClient no IServiceCollection. |
| AddSpeechToTextClient(IServiceCollection, Func<IServiceProvider,ISpeechToTextClient>, ServiceLifetime) |
Registra um singleton ISpeechToTextClient no IServiceCollection. |
AddSpeechToTextClient(IServiceCollection, ISpeechToTextClient, ServiceLifetime)
Registra um singleton ISpeechToTextClient no IServiceCollection.
public static Microsoft.Extensions.AI.SpeechToTextClientBuilder AddSpeechToTextClient(this Microsoft.Extensions.DependencyInjection.IServiceCollection serviceCollection, Microsoft.Extensions.AI.ISpeechToTextClient innerClient, Microsoft.Extensions.DependencyInjection.ServiceLifetime lifetime = Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton);
static member AddSpeechToTextClient : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.AI.ISpeechToTextClient * Microsoft.Extensions.DependencyInjection.ServiceLifetime -> Microsoft.Extensions.AI.SpeechToTextClientBuilder
<Extension()>
Public Function AddSpeechToTextClient (serviceCollection As IServiceCollection, innerClient As ISpeechToTextClient, Optional lifetime As ServiceLifetime = Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton) As SpeechToTextClientBuilder
Parâmetros
- serviceCollection
- IServiceCollection
O IServiceCollection cliente ao qual o cliente deve ser adicionado.
- innerClient
- ISpeechToTextClient
O interior ISpeechToTextClient que representa o back-end subjacente.
- lifetime
- ServiceLifetime
O tempo de vida do serviço para o cliente. Usa Singleton como padrão.
Retornos
Um SpeechToTextClientBuilder que pode ser usado para criar um pipeline em torno do cliente interno.
Comentários
O cliente é registrado como um serviço singleton.
Aplica-se a
AddSpeechToTextClient(IServiceCollection, Func<IServiceProvider,ISpeechToTextClient>, ServiceLifetime)
Registra um singleton ISpeechToTextClient no IServiceCollection.
public static Microsoft.Extensions.AI.SpeechToTextClientBuilder AddSpeechToTextClient(this Microsoft.Extensions.DependencyInjection.IServiceCollection serviceCollection, Func<IServiceProvider,Microsoft.Extensions.AI.ISpeechToTextClient> innerClientFactory, Microsoft.Extensions.DependencyInjection.ServiceLifetime lifetime = Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton);
static member AddSpeechToTextClient : Microsoft.Extensions.DependencyInjection.IServiceCollection * Func<IServiceProvider, Microsoft.Extensions.AI.ISpeechToTextClient> * Microsoft.Extensions.DependencyInjection.ServiceLifetime -> Microsoft.Extensions.AI.SpeechToTextClientBuilder
<Extension()>
Public Function AddSpeechToTextClient (serviceCollection As IServiceCollection, innerClientFactory As Func(Of IServiceProvider, ISpeechToTextClient), Optional lifetime As ServiceLifetime = Microsoft.Extensions.DependencyInjection.ServiceLifetime.Singleton) As SpeechToTextClientBuilder
Parâmetros
- serviceCollection
- IServiceCollection
O IServiceCollection cliente ao qual o cliente deve ser adicionado.
- innerClientFactory
- Func<IServiceProvider,ISpeechToTextClient>
Um retorno de chamada que produz o interior ISpeechToTextClient que representa o back-end subjacente.
- lifetime
- ServiceLifetime
O tempo de vida do serviço para o cliente. Usa Singleton como padrão.
Retornos
Um SpeechToTextClientBuilder que pode ser usado para criar um pipeline em torno do cliente interno.
Comentários
O cliente é registrado como um serviço singleton.