Run ttsds/xtts_2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"ttsds/xtts_2:a125885ec67a4482bc10c292e59b33aeb1be75042f606916c0ea692e4ff13e84",
{
input: {
text: "With tenure, Suzie'd have all the more leisure for yachting, but her publications are no good.",
language: "en",
speaker_reference: "https://replicate.delivery/pbxt/MNFXdPaUPOwYCZjZM4azsymbzE2TCV2WJXfGpeV2DrFWaSq8/example_en.wav"
}
}
);
// To access the file URL:console.log(output.url()); //=> "http://example.com"// To write the file to disk:
fs.writeFile("my-image.png", output);
Run ttsds/xtts_2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"ttsds/xtts_2:a125885ec67a4482bc10c292e59b33aeb1be75042f606916c0ea692e4ff13e84",
input={
"text": "With tenure, Suzie'd have all the more leisure for yachting, but her publications are no good.",
"language": "en",
"speaker_reference": "https://replicate.delivery/pbxt/MNFXdPaUPOwYCZjZM4azsymbzE2TCV2WJXfGpeV2DrFWaSq8/example_en.wav"
}
)
# To access the file URL:print(output.url())
#=> "http://example.com"# To write the file to disk:withopen("my-image.png", "wb") as file:
file.write(output.read())
Run ttsds/xtts_2 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": "ttsds/xtts_2:a125885ec67a4482bc10c292e59b33aeb1be75042f606916c0ea692e4ff13e84",
"input": {
"text": "With tenure, Suzie\'d have all the more leisure for yachting, but her publications are no good.",
"language": "en",
"speaker_reference": "https://replicate.delivery/pbxt/MNFXdPaUPOwYCZjZM4azsymbzE2TCV2WJXfGpeV2DrFWaSq8/example_en.wav"
}
}' \
https://api.replicate.com/v1/predictions