Table of Contents

Method GetAvailableVoicesAsync

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

GetAvailableVoicesAsync(SpeechProviderConfig, string?, bool, CancellationToken)

Gets voices from the configured provider.

public Task<IReadOnlyList<SpeechSynthesisVoice>> GetAvailableVoicesAsync(SpeechProviderConfig config, string? apiKey, bool requireLocalEndpoint, CancellationToken ct = default)

Parameters

config SpeechProviderConfig
apiKey string?
requireLocalEndpoint bool
ct CancellationToken

Returns

Task<IReadOnlyList<SpeechSynthesisVoice>>