次の方法で共有


TextToSpeechClientBuilder クラス

定義

ITextToSpeechClientのパイプラインを作成するためのビルダー。

public ref class TextToSpeechClientBuilder sealed
[System.Diagnostics.CodeAnalysis.Experimental("MEAI001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
public sealed class TextToSpeechClientBuilder
public sealed class TextToSpeechClientBuilder
[<System.Diagnostics.CodeAnalysis.Experimental("MEAI001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
type TextToSpeechClientBuilder = class
type TextToSpeechClientBuilder = class
Public NotInheritable Class TextToSpeechClientBuilder
継承
TextToSpeechClientBuilder
属性

コンストラクター

名前 説明
TextToSpeechClientBuilder(Func<IServiceProvider,ITextToSpeechClient>)

TextToSpeechClientBuilder クラスの新しいインスタンスを初期化します。

TextToSpeechClientBuilder(ITextToSpeechClient)

TextToSpeechClientBuilder クラスの新しいインスタンスを初期化します。

メソッド

名前 説明
Build(IServiceProvider)

パイプライン全体を表す ITextToSpeechClient をビルドします。 このインスタンスの呼び出しは、各パイプライン ステージを順番に通過します。

Use(Func<ITextToSpeechClient,IServiceProvider,ITextToSpeechClient>)

中間テキスト読み上げクライアントのファクトリをテキスト読み上げクライアント パイプラインに追加します。

Use(Func<ITextToSpeechClient,ITextToSpeechClient>)

中間テキスト読み上げクライアントのファクトリをテキスト読み上げクライアント パイプラインに追加します。

拡張メソッド

名前 説明
ConfigureOptions(TextToSpeechClientBuilder, Action<TextToSpeechOptions>)

パイプライン内の次のクライアントに渡される TextToSpeechOptions を構成するコールバックを追加します。

UseLogging(TextToSpeechClientBuilder, ILoggerFactory, Action<LoggingTextToSpeechClient>)

テキスト読み上げクライアント パイプラインにログ記録を追加します。

UseOpenTelemetry(TextToSpeechClientBuilder, ILoggerFactory, String, Action<OpenTelemetryTextToSpeechClient>)

生成 AI システムの OpenTelemetry セマンティック規則に従って、テキスト読み上げクライアント パイプラインに OpenTelemetry のサポートを追加します。

適用対象