SpeechToTextClientBuilderServiceCollectionExtensions.AddSpeechToTextClient メソッド

定義

オーバーロード

AddSpeechToTextClient(IServiceCollection, ISpeechToTextClient, ServiceLifetime)

ソース:
SpeechToTextClientBuilderServiceCollectionExtensions.cs

シングルトン ISpeechToTextClientIServiceCollectionに登録します。

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

パラメーター

serviceCollection
IServiceCollection

クライアントを追加する IServiceCollection

innerClient
ISpeechToTextClient

基になるバックエンドを表す内部 ISpeechToTextClient

lifetime
ServiceLifetime

クライアントのサービスの有効期間。 既定値は Singleton です。

返品

内部クライアントの周囲にパイプラインを構築するために使用できる SpeechToTextClientBuilder

注釈

クライアントはシングルトン サービスとして登録されます。

適用対象

AddSpeechToTextClient(IServiceCollection, Func<IServiceProvider,ISpeechToTextClient>, ServiceLifetime)

ソース:
SpeechToTextClientBuilderServiceCollectionExtensions.cs

シングルトン ISpeechToTextClientIServiceCollectionに登録します。

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

パラメーター

serviceCollection
IServiceCollection

クライアントを追加する IServiceCollection

innerClientFactory
Func<IServiceProvider,ISpeechToTextClient>

基になるバックエンドを表す内部 ISpeechToTextClient を生成するコールバック。

lifetime
ServiceLifetime

クライアントのサービスの有効期間。 既定値は Singleton です。

返品

内部クライアントの周囲にパイプラインを構築するために使用できる SpeechToTextClientBuilder

注釈

クライアントはシングルトン サービスとして登録されます。

適用対象