次の方法で共有


DelegatingTextToSpeechClient クラス

定義

別のインスタンスへの呼び出しを通過する ITextToSpeechClient の省略可能な基底クラスを提供します。

public ref class DelegatingTextToSpeechClient : IDisposable, Microsoft::Extensions::AI::ITextToSpeechClient
[System.Diagnostics.CodeAnalysis.Experimental("MEAI001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
public class DelegatingTextToSpeechClient : IDisposable, Microsoft.Extensions.AI.ITextToSpeechClient
public class DelegatingTextToSpeechClient : IDisposable, Microsoft.Extensions.AI.ITextToSpeechClient
[<System.Diagnostics.CodeAnalysis.Experimental("MEAI001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
type DelegatingTextToSpeechClient = class
    interface ITextToSpeechClient
    interface IDisposable
type DelegatingTextToSpeechClient = class
    interface ITextToSpeechClient
    interface IDisposable
Public Class DelegatingTextToSpeechClient
Implements IDisposable, ITextToSpeechClient
継承
DelegatingTextToSpeechClient
派生
属性
実装

注釈

これは、基になる ITextToSpeechClientの周囲で任意の順序でチェーンできるクライアントを構築する場合に、基本の種類として推奨されます。 既定の実装では、各呼び出しを内部クライアント インスタンスに渡すだけです。

コンストラクター

名前 説明
DelegatingTextToSpeechClient(ITextToSpeechClient)

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

プロパティ

名前 説明
InnerClient

内部 ITextToSpeechClientを取得します。

メソッド

名前 説明
Dispose()

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

Dispose(Boolean)

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

GetAudioAsync(String, TextToSpeechOptions, CancellationToken)

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

GetService(Type, Object)

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

GetStreamingAudioAsync(String, TextToSpeechOptions, CancellationToken)

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

拡張メソッド

名前 説明
AsBuilder(ITextToSpeechClient)

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

GetService<TService>(ITextToSpeechClient, Object)

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

適用対象