Upload Voice to Chatterbox
Description
Uploads a voice sample directly to a local Chatterbox instance. Does not require setting the API base URL first.
Usage
1chatterbox_voice_upload(voice_file, voice_name, port = NULL, timeout = 30)
Arguments
voice_file: Character. Path to the voice sample file (mp3, wav).voice_name: Character. Name to save the voice as.port: Port for Chatterbox API (default from CHATTERBOX_PORT env var or 7810)timeout: Timeout in seconds (default 30)
Value
TRUE if upload succeeded, FALSE otherwise. Does not throw errors.
Examples
1 # Upload a voice sample
2 success <- chatterbox_voice_upload("my_voice.wav", "my-voice")
3
4 if (success) {
5 tts("Hello!", voice = "my-voice", backend = "chatterbox")
6 }