Del via


ConfigureOptionsTextToSpeechClient Constructor

Definition

Initializes a new instance of the ConfigureOptionsTextToSpeechClient class with the specified configure callback.

public:
 ConfigureOptionsTextToSpeechClient(Microsoft::Extensions::AI::ITextToSpeechClient ^ innerClient, Action<Microsoft::Extensions::AI::TextToSpeechOptions ^> ^ configure);
public ConfigureOptionsTextToSpeechClient(Microsoft.Extensions.AI.ITextToSpeechClient innerClient, Action<Microsoft.Extensions.AI.TextToSpeechOptions> configure);
new Microsoft.Extensions.AI.ConfigureOptionsTextToSpeechClient : Microsoft.Extensions.AI.ITextToSpeechClient * Action<Microsoft.Extensions.AI.TextToSpeechOptions> -> Microsoft.Extensions.AI.ConfigureOptionsTextToSpeechClient
Public Sub New (innerClient As ITextToSpeechClient, configure As Action(Of TextToSpeechOptions))

Parameters

innerClient
ITextToSpeechClient

The inner client.

configure
Action<TextToSpeechOptions>

The delegate to invoke to configure the TextToSpeechOptions instance. It is passed a clone of the caller-supplied TextToSpeechOptions instance (or a newly constructed instance if the caller-supplied instance is null).

Remarks

The configure delegate is passed either a new instance of TextToSpeechOptions if the caller didn't supply a TextToSpeechOptions instance, or a clone (via Clone() of the caller-supplied instance if one was supplied.

Applies to