chatterbox is an R package that is an R port of resemble AI's chatterbox library. It is written entirely in R using torch and has no Python dependencies.
You can install the development version of chatterbox from GitHub with:
remotes::install_github("cornball-ai/chatterbox")
# Set timeout to 10 minutes to allow model download
options(timeout = 600)
library(chatterbox)
# Load model
model <- chatterbox("cuda")
model <- load_chatterbox(model)
# Generate speech
jfk <- system.file("audio", "jfk.mp3", package = "chatterbox")
result <- tts(model, "Hello, this is a test!", jfk)
write_audio(result$audio, result$sample_rate, "output.wav")
# Or one-liner:
quick_tts("Hello world!", "ref.wav", "out.wav")