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
chatterbox_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
# Upload a voice sample
success <- chatterbox_voice_upload("my_voice.wav", "my-voice")
if (success) {
tts("Hello!", voice = "my-voice", backend = "chatterbox")
}