You're looking at a specific version of this model. Jump to the model overview.
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run chenxwh/openvoice using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"chenxwh/openvoice:002cf9fb1ac44f6a172c4ceb868df704a414a8346ac0296310a2d1207226d3a2",
{
input: {
text: "El resplandor del sol acaricia las olas, pintando el cielo con una paleta deslumbrante.",
audio: "https://replicate.delivery/pbxt/KpK8evnazh2CSvXSeEpVA12nr8U7by0LBguRu1mF5tzMWr2D/example_reference.mp3",
speed: 1,
language: "ES"
}
}
);
console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run chenxwh/openvoice using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"chenxwh/openvoice:002cf9fb1ac44f6a172c4ceb868df704a414a8346ac0296310a2d1207226d3a2",
input={
"text": "El resplandor del sol acaricia las olas, pintando el cielo con una paleta deslumbrante.",
"audio": "https://replicate.delivery/pbxt/KpK8evnazh2CSvXSeEpVA12nr8U7by0LBguRu1mF5tzMWr2D/example_reference.mp3",
"speed": 1,
"language": "ES"
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run chenxwh/openvoice 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": "002cf9fb1ac44f6a172c4ceb868df704a414a8346ac0296310a2d1207226d3a2",
"input": {
"text": "El resplandor del sol acaricia las olas, pintando el cielo con una paleta deslumbrante.",
"audio": "https://replicate.delivery/pbxt/KpK8evnazh2CSvXSeEpVA12nr8U7by0LBguRu1mF5tzMWr2D/example_reference.mp3",
"speed": 1,
"language": "ES"
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
brew install cog
If you don’t have Homebrew, there are other installation options available.
Pull and run chenxwh/openvoice using Cog (this will download the full model and run it in your local environment):
cog predict r8.im/cjwbw/openvoice@sha256:002cf9fb1ac44f6a172c4ceb868df704a414a8346ac0296310a2d1207226d3a2 \
-i 'text="El resplandor del sol acaricia las olas, pintando el cielo con una paleta deslumbrante."' \
-i 'audio="https://replicate.delivery/pbxt/KpK8evnazh2CSvXSeEpVA12nr8U7by0LBguRu1mF5tzMWr2D/example_reference.mp3"' \
-i 'speed=1' \
-i 'language="ES"'
To learn more, take a look at the Cog documentation.
Pull and run chenxwh/openvoice using Docker (this will download the full model and run it in your local environment):
docker run -d -p 5000:5000 --gpus=all r8.im/cjwbw/openvoice@sha256:002cf9fb1ac44f6a172c4ceb868df704a414a8346ac0296310a2d1207226d3a2
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "text": "El resplandor del sol acaricia las olas, pintando el cielo con una paleta deslumbrante.", "audio": "https://replicate.delivery/pbxt/KpK8evnazh2CSvXSeEpVA12nr8U7by0LBguRu1mF5tzMWr2D/example_reference.mp3", "speed": 1, "language": "ES" } }' \ http://localhost:5000/predictions
Add a payment method to run this model.
Each run costs approximately $0.0086. Alternatively, try out our featured models for free.
By signing in, you agree to our
terms of service and privacy policy
Output
- Chapters
- descriptions off, selected
- captions settings, opens captions settings dialog
- captions off, selected
This is a modal window.
Beginning of dialog window. Escape will cancel and close the window.
End of dialog window.
{
"completed_at": "2024-04-28T16:28:11.821113Z",
"created_at": "2024-04-28T16:27:56.118000Z",
"data_removed": false,
"error": null,
"id": "mtnb5fpqasrgj0cf4p4b2sp1ym",
"input": {
"text": "El resplandor del sol acaricia las olas, pintando el cielo con una paleta deslumbrante.",
"audio": "https://replicate.delivery/pbxt/KpK8evnazh2CSvXSeEpVA12nr8U7by0LBguRu1mF5tzMWr2D/example_reference.mp3",
"speed": 1,
"language": "ES"
},
"logs": "OpenVoice version: v2\n> Text split to sentences.\nEl resplandor del sol acaricia las olas, pintando el cielo con una paleta deslumbrante.\n> ===========================\n 0%| | 0/1 [00:00<?, ?it/s]\n100%|██████████| 1/1 [00:07<00:00, 7.33s/it]\n100%|██████████| 1/1 [00:07<00:00, 7.33s/it]",
"metrics": {
"predict_time": 15.66556,
"total_time": 15.703113
},
"output": "https://replicate.delivery/pbxt/elqQhdCLRB16ekw8o0a0i2e7iVJdxV18j7W1f1YmLieVjV4VC/out.wav",
"started_at": "2024-04-28T16:27:56.155553Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/mtnb5fpqasrgj0cf4p4b2sp1ym",
"cancel": "https://api.replicate.com/v1/predictions/mtnb5fpqasrgj0cf4p4b2sp1ym/cancel"
},
"version": "002cf9fb1ac44f6a172c4ceb868df704a414a8346ac0296310a2d1207226d3a2"
}
OpenVoice version: v2
> Text split to sentences.
El resplandor del sol acaricia las olas, pintando el cielo con una paleta deslumbrante.
> ===========================
0%| | 0/1 [00:00<?, ?it/s]
100%|██████████| 1/1 [00:07<00:00, 7.33s/it]
100%|██████████| 1/1 [00:07<00:00, 7.33s/it]