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
configSpeechProviderConfigapiKeystring?requireLocalEndpointboolctCancellationToken