Get Voices for a TTS Provider
Description
Returns available voices for a given provider. Attempts to fetch dynamically from the API first, falls back to static list if unavailable.
Usage
1tts_voices(provider, base_url = NULL, timeout = 2)
Arguments
provider: Character string naming the provider (e.g., “OpenAI”, “Chatterbox (Local)”)base_url: Optional base URL override for the provider’s APItimeout: Timeout in seconds for API requests (default 2)
Value
Character vector of voice names
Examples
1tts_voices("OpenAI")
2tts_voices("Chatterbox (Local)")