Generate speech from text
Description
Generate speech from text
Usage
generate(
model,
text,
voice,
exaggeration = 0.5,
cfg_weight = 0.5,
temperature = 0.8,
top_p = 0.9,
autocast = NULL,
traced = FALSE
)
Arguments
model: Chatterbox modeltext: Text to synthesizevoice: Voice embedding from create_voice_embedding() or path to reference audioexaggeration: Emotion/expression exaggeration level (0-1, default 0.5)cfg_weight: Classifier-free guidance weight (higher = more adherence to text, default 0.5)temperature: Sampling temperature (default 0.8)top_p: Top-p (nucleus) sampling threshold (default 0.9)autocast: Use mixed precision (float16) on CUDA for faster inference (default TRUE on CUDA)
Value
List with audio (numeric vector) and sample_rate