次の方法で共有


OpenTelemetryTextToSpeechClient クラス

定義

Generative AI システムの OpenTelemetry セマンティック規則を実装する委任テキスト読み上げクライアントを表します。

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

注釈

このクラスは、 https://opentelemetry.io/docs/specs/semconv/gen-ai/で定義された Generative AI システム v1.40 のセマンティック規則の実装を提供します。 仕様はまだ実験的であり、変更される可能性があります。そのため、このクライアントによるテレメトリ出力も変更される可能性があります。

コンストラクター

名前 説明
OpenTelemetryTextToSpeechClient(ITextToSpeechClient, ILogger, String)

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

プロパティ

名前 説明
EnableSensitiveData

潜在的な機密情報をテレメトリに含めるかどうかを示す値を取得または設定します。

InnerClient

内部 ITextToSpeechClientを取得します。

(継承元 DelegatingTextToSpeechClient)

メソッド

名前 説明
Dispose()

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

(継承元 DelegatingTextToSpeechClient)
Dispose(Boolean)

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

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

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

GetService(Type, Object)

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

GetStreamingAudioAsync(String, TextToSpeechOptions, CancellationToken)

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

拡張メソッド

名前 説明
AsBuilder(ITextToSpeechClient)

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

GetService<TService>(ITextToSpeechClient, Object)

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

適用対象