Table of Contents

Method SynthesizeAsync

Namespace
Oscova.Agents.Speech
Assembly
Oscova.Agents.dll

SynthesizeAsync(SpeechProviderConfig, string?, string, SpeechSynthesisRequest, bool, CancellationToken)

Synthesizes speech through the configured provider.

public Task<SpeechSynthesisResponse> SynthesizeAsync(SpeechProviderConfig config, string? apiKey, string userId, SpeechSynthesisRequest request, bool requireLocalEndpoint, CancellationToken ct = default)

Parameters

config SpeechProviderConfig
apiKey string?
userId string
request SpeechSynthesisRequest
requireLocalEndpoint bool
ct CancellationToken

Returns

Task<SpeechSynthesisResponse>