Skip to content

An R package that ports the chatterbox tts engine using torch to R

License

Notifications You must be signed in to change notification settings

cornball-ai/chatterbox

Repository files navigation

chatterbox

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.

Installation

You can install the development version of chatterbox from GitHub with:

remotes::install_github("cornball-ai/chatterbox")

Usage

# 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")

About

An R package that ports the chatterbox tts engine using torch to R

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published