defaultHi there, I'm your new voice clone. Try your best to upload quality audio
typetext
{
"language": "pt",
"speaker_wav": "https://replicate.delivery/pbxt/JqzxMWScZ4O44XwIwWveDoeAE2Ga7gYdnXKb8l18Fv7D3QEx/female.wav",
"text": "Quando eu tinha seis anos eu vi, uma vez, uma imagem magnífica"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_6jI**********************************
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 lucataco/xtts-v2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"lucataco/xtts-v2:e876df565d4d629da440ce5820d1d2c8c2adb963f52e526efc064911f841f85e",
{
input: {
language: "pt",
speaker_wav: "https://replicate.delivery/pbxt/JqzxMWScZ4O44XwIwWveDoeAE2Ga7gYdnXKb8l18Fv7D3QEx/female.wav",
text: "Quando eu tinha seis anos eu vi, uma vez, uma imagem magnífica"
}
}
);
// 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_6jI**********************************
This is your API token. Keep it to yourself.
import replicate
Run lucataco/xtts-v2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"lucataco/xtts-v2:e876df565d4d629da440ce5820d1d2c8c2adb963f52e526efc064911f841f85e",
input={
"language": "pt",
"speaker_wav": "https://replicate.delivery/pbxt/JqzxMWScZ4O44XwIwWveDoeAE2Ga7gYdnXKb8l18Fv7D3QEx/female.wav",
"text": "Quando eu tinha seis anos eu vi, uma vez, uma imagem magnífica"
}
)
# 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_6jI**********************************
This is your API token. Keep it to yourself.
Run lucataco/xtts-v2 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": "lucataco/xtts-v2:e876df565d4d629da440ce5820d1d2c8c2adb963f52e526efc064911f841f85e",
"input": {
"language": "pt",
"speaker_wav": "https://replicate.delivery/pbxt/JqzxMWScZ4O44XwIwWveDoeAE2Ga7gYdnXKb8l18Fv7D3QEx/female.wav",
"text": "Quando eu tinha seis anos eu vi, uma vez, uma imagem magnífica"
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "jbzmikzby74g65lnjmtqhljopm",
"model": "lucataco/xtts-v2",
"version": "e876df565d4d629da440ce5820d1d2c8c2adb963f52e526efc064911f841f85e",
"input": {
"language": "pt",
"speaker_wav": "https://replicate.delivery/pbxt/JqzxMWScZ4O44XwIwWveDoeAE2Ga7gYdnXKb8l18Fv7D3QEx/female.wav",
"text": "Quando eu tinha seis anos eu vi, uma vez, uma imagem magnífica"
},
"logs": "> Text splitted to sentences.\n['Quando eu tinha seis anos eu vi, uma vez, uma imagem magnífica']\n> Processing time: 2.843817949295044\n> Real-time factor: 0.5418410910233973",
"output": "https://replicate.delivery/pbxt/e5H9tBUVKMS2AiGmOTkYpyc0OefOrVxsYL7qMgJywurLiDujA/output.wav",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2023-11-10T17:37:06.564173Z",
"started_at": "2023-11-10T17:37:06.535202Z",
"completed_at": "2023-11-10T17:37:09.854915Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/jbzmikzby74g65lnjmtqhljopm/cancel",
"get": "https://api.replicate.com/v1/predictions/jbzmikzby74g65lnjmtqhljopm"
},
"metrics": {
"predict_time": 3.319713,
"total_time": 3.290742
}
}