defaultWow! That was an incredible firework display.
typetext
{
"audio_prompt_path": "https://maskgct.github.io/audios/celeb_samples/rick_0.wav",
"cfg_weight": 0.5,
"exaggeration": 0.5,
"temperature": 0.8,
"text": "Then I would never talk to that person about boa constrictors, or primeval forests, or stars. I would bring myself down to his level."
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_I4S**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run thomcle/chatterbox-tts using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"thomcle/chatterbox-tts:3f5f9c195086737dda710bf504330f71e786d0a361b505e377c8b10122af9d32",
{
input: {
audio_prompt_path: "https://maskgct.github.io/audios/celeb_samples/rick_0.wav",
cfg_weight: 0.5,
exaggeration: 0.5,
temperature: 0.8,
text: "Then I would never talk to that person about boa constrictors, or primeval forests, or stars. I would bring myself down to his level."
}
}
);
// To access the file URL:
console.log(output.url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_I4S**********************************
This is your API token. Keep it to yourself.
import replicate
Run thomcle/chatterbox-tts using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"thomcle/chatterbox-tts:3f5f9c195086737dda710bf504330f71e786d0a361b505e377c8b10122af9d32",
input={
"audio_prompt_path": "https://maskgct.github.io/audios/celeb_samples/rick_0.wav",
"cfg_weight": 0.5,
"exaggeration": 0.5,
"temperature": 0.8,
"text": "Then I would never talk to that person about boa constrictors, or primeval forests, or stars. I would bring myself down to his level."
}
)
# To access the file URL:
print(output.url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output.read())
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_I4S**********************************
This is your API token. Keep it to yourself.
Run thomcle/chatterbox-tts using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: wait" \
-d $'{
"version": "thomcle/chatterbox-tts:3f5f9c195086737dda710bf504330f71e786d0a361b505e377c8b10122af9d32",
"input": {
"audio_prompt_path": "https://maskgct.github.io/audios/celeb_samples/rick_0.wav",
"cfg_weight": 0.5,
"exaggeration": 0.5,
"temperature": 0.8,
"text": "Then I would never talk to that person about boa constrictors, or primeval forests, or stars. I would bring myself down to his level."
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "k0jzgr4yf9rga0cq45x9w5zfn8",
"model": "thomcle/chatterbox-tts",
"version": "3f5f9c195086737dda710bf504330f71e786d0a361b505e377c8b10122af9d32",
"input": {
"audio_prompt_path": "https://maskgct.github.io/audios/celeb_samples/rick_0.wav",
"cfg_weight": 0.5,
"exaggeration": 0.5,
"temperature": 0.8,
"text": "Then I would never talk to that person about boa constrictors, or primeval forests, or stars. I would bring myself down to his level."
},
"logs": "WARNING:root:Reference mel length is not equal to 2 * reference token length.\nSampling: 0%| | 0/1000 [00:00<?, ?it/s]\nSampling: 0%| | 2/1000 [00:00<00:58, 17.12it/s]\nSampling: 1%| | 6/1000 [00:00<00:39, 25.40it/s]\nSampling: 1%| | 10/1000 [00:00<00:34, 28.29it/s]\nSampling: 1%|▏ | 14/1000 [00:00<00:33, 29.14it/s]\nSampling: 2%|▏ | 18/1000 [00:00<00:33, 29.71it/s]\nSampling: 2%|▏ | 22/1000 [00:00<00:31, 30.60it/s]\nSampling: 3%|▎ | 26/1000 [00:00<00:31, 31.15it/s]\nSampling: 3%|▎ | 30/1000 [00:01<00:31, 31.16it/s]\nSampling: 3%|▎ | 34/1000 [00:01<00:31, 31.09it/s]\nSampling: 4%|▍ | 38/1000 [00:01<00:30, 31.05it/s]\nSampling: 4%|▍ | 42/1000 [00:01<00:30, 31.60it/s]\nSampling: 5%|▍ | 46/1000 [00:01<00:30, 31.25it/s]\nSampling: 5%|▌ | 50/1000 [00:01<00:30, 31.61it/s]\nSampling: 5%|▌ | 54/1000 [00:01<00:29, 31.83it/s]\nSampling: 6%|▌ | 58/1000 [00:01<00:29, 32.00it/s]\nSampling: 6%|▌ | 62/1000 [00:02<00:29, 31.98it/s]\nSampling: 7%|▋ | 66/1000 [00:02<00:29, 32.10it/s]\nSampling: 7%|▋ | 70/1000 [00:02<00:29, 32.00it/s]\nSampling: 7%|▋ | 74/1000 [00:02<00:28, 32.18it/s]\nSampling: 8%|▊ | 78/1000 [00:02<00:29, 31.66it/s]\nSampling: 8%|▊ | 82/1000 [00:02<00:28, 31.85it/s]\nSampling: 9%|▊ | 86/1000 [00:02<00:28, 32.25it/s]\nSampling: 9%|▉ | 90/1000 [00:02<00:28, 32.31it/s]\nSampling: 9%|▉ | 94/1000 [00:03<00:28, 32.06it/s]\nSampling: 10%|▉ | 98/1000 [00:03<00:27, 32.33it/s]\nSampling: 10%|█ | 102/1000 [00:03<00:27, 32.26it/s]\nSampling: 11%|█ | 106/1000 [00:03<00:27, 32.38it/s]\nSampling: 11%|█ | 110/1000 [00:03<00:27, 32.14it/s]\nSampling: 11%|█▏ | 114/1000 [00:03<00:27, 32.41it/s]\nSampling: 12%|█▏ | 118/1000 [00:03<00:27, 32.64it/s]\nSampling: 12%|█▏ | 122/1000 [00:03<00:27, 32.15it/s]\nSampling: 13%|█▎ | 126/1000 [00:04<00:27, 32.24it/s]\nSampling: 13%|█▎ | 130/1000 [00:04<00:26, 32.24it/s]\nSampling: 13%|█▎ | 134/1000 [00:04<00:27, 31.22it/s]\nSampling: 14%|█▍ | 138/1000 [00:04<00:27, 31.70it/s]\nSampling: 14%|█▍ | 142/1000 [00:04<00:26, 31.80it/s]\nSampling: 15%|█▍ | 146/1000 [00:04<00:26, 32.17it/s]\nSampling: 15%|█▌ | 150/1000 [00:04<00:26, 31.71it/s]\nSampling: 15%|█▌ | 154/1000 [00:04<00:26, 31.60it/s]\nSampling: 16%|█▌ | 158/1000 [00:05<00:26, 31.53it/s]\nSampling: 16%|█▌ | 162/1000 [00:05<00:26, 31.55it/s]\nSampling: 17%|█▋ | 166/1000 [00:05<00:26, 31.52it/s]\nSampling: 17%|█▋ | 170/1000 [00:05<00:26, 31.89it/s]\nSampling: 17%|█▋ | 174/1000 [00:05<00:25, 31.97it/s]\nSampling: 18%|█▊ | 178/1000 [00:05<00:25, 32.06it/s]\nSampling: 18%|█▊ | 180/1000 [00:05<00:25, 31.54it/s]",
"output": "https://replicate.delivery/czjl/WLb3N63OdupuNpN3owgmEAlLlAnWIPyTlt8ATeBw3hVCW7YKA/output.wav",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-05-30T13:56:13.562Z",
"started_at": "2025-05-30T13:56:13.578877Z",
"completed_at": "2025-05-30T13:56:20.810154Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/k0jzgr4yf9rga0cq45x9w5zfn8/cancel",
"get": "https://api.replicate.com/v1/predictions/k0jzgr4yf9rga0cq45x9w5zfn8",
"stream": "https://stream.replicate.com/v1/files/fddq-7tykk7bdcpig2qy7u5eyqqojrvuvhpu22kzmz65rek4wm7rcardq",
"web": "https://replicate.com/p/k0jzgr4yf9rga0cq45x9w5zfn8"
},
"metrics": {
"predict_time": 7.231277546,
"total_time": 7.248154
}
}