次の方法で共有


LoggingTextToSpeechClient クラス

定義

テキストから音声への操作を ILoggerに記録する音声クライアントへのテキストの委任。

public ref class LoggingTextToSpeechClient : Microsoft::Extensions::AI::DelegatingTextToSpeechClient
[System.Diagnostics.CodeAnalysis.Experimental("MEAI001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
public class LoggingTextToSpeechClient : Microsoft.Extensions.AI.DelegatingTextToSpeechClient
public class LoggingTextToSpeechClient : Microsoft.Extensions.AI.DelegatingTextToSpeechClient
[<System.Diagnostics.CodeAnalysis.Experimental("MEAI001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
type LoggingTextToSpeechClient = class
    inherit DelegatingTextToSpeechClient
type LoggingTextToSpeechClient = class
    inherit DelegatingTextToSpeechClient
Public Class LoggingTextToSpeechClient
Inherits DelegatingTextToSpeechClient
継承
LoggingTextToSpeechClient
属性

注釈

提供される ITextToSpeechClient の実装は、同時に使用する ILogger が同時使用でもスレッド セーフである限り、同時使用ではスレッド セーフです。

使用されている ILoggerTraceを有効にすると、メッセージとオプションの内容がログに記録されます。 これらのメッセージとオプションには、機密性の高いアプリケーション データが含まれている場合があります。 Trace は既定で無効になっており、運用環境では有効にしないでください。 メッセージとオプションは、他のログ 記録レベルでは記録されません。

コンストラクター

名前 説明
LoggingTextToSpeechClient(ITextToSpeechClient, ILogger)

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

プロパティ

名前 説明
InnerClient

内部 ITextToSpeechClientを取得します。

(継承元 DelegatingTextToSpeechClient)
JsonSerializerOptions

ログ データをシリアル化するときに使用する JSON シリアル化オプションを取得または設定します。

メソッド

名前 説明
Dispose()

アンマネージド リソースの解放、解放、またはリセットに関連付けられているアプリケーション定義のタスクを実行します。

(継承元 DelegatingTextToSpeechClient)
Dispose(Boolean)

アンマネージ リソースを解放するためのメカニズムを提供します。

(継承元 DelegatingTextToSpeechClient)
GetAudioAsync(String, TextToSpeechOptions, CancellationToken)

テキスト コンテンツをモデルに送信し、生成されたオーディオ音声を返します。

GetService(Type, Object)

指定した型ITextToSpeechClientのオブジェクトをserviceTypeに要求します。

(継承元 DelegatingTextToSpeechClient)
GetStreamingAudioAsync(String, TextToSpeechOptions, CancellationToken)

テキスト コンテンツをモデルに送信し、生成されたオーディオ音声をストリーム バックします。

拡張メソッド

名前 説明
AsBuilder(ITextToSpeechClient)

TextToSpeechClientBuilderを内部クライアントとして使用して、新しいinnerClientを作成します。

GetService<TService>(ITextToSpeechClient, Object)

ITextToSpeechClient型のオブジェクトをTServiceに求めます。

適用対象