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:af9877f21c4e040357eb6424ecddd7199367be2d8667ad4b6bbd306cbcd326e4",
{
input: {
audio: "https://replicate.delivery/pbxt/KB9Tfj0o8VwpnYirmw4Jjz6OeShKvw3XHoVLTSBkBYoL8DRq/demo_speaker1.mp3",
speed: 1,
style: "default",
prompt: "He hoped there would be stew for dinner, turnips and carrots and bruised potatoes and fat mutton pieces to be ladled out in thick, peppered, flour-fattened sauce.",
agree_terms: true
}
}
);
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:af9877f21c4e040357eb6424ecddd7199367be2d8667ad4b6bbd306cbcd326e4",
input={
"audio": "https://replicate.delivery/pbxt/KB9Tfj0o8VwpnYirmw4Jjz6OeShKvw3XHoVLTSBkBYoL8DRq/demo_speaker1.mp3",
"speed": 1,
"style": "default",
"prompt": "He hoped there would be stew for dinner, turnips and carrots and bruised potatoes and fat mutton pieces to be ladled out in thick, peppered, flour-fattened sauce.",
"agree_terms": True
}
)
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": "af9877f21c4e040357eb6424ecddd7199367be2d8667ad4b6bbd306cbcd326e4",
"input": {
"audio": "https://replicate.delivery/pbxt/KB9Tfj0o8VwpnYirmw4Jjz6OeShKvw3XHoVLTSBkBYoL8DRq/demo_speaker1.mp3",
"speed": 1,
"style": "default",
"prompt": "He hoped there would be stew for dinner, turnips and carrots and bruised potatoes and fat mutton pieces to be ladled out in thick, peppered, flour-fattened sauce.",
"agree_terms": true
}
}' \
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:af9877f21c4e040357eb6424ecddd7199367be2d8667ad4b6bbd306cbcd326e4 \
-i 'audio="https://replicate.delivery/pbxt/KB9Tfj0o8VwpnYirmw4Jjz6OeShKvw3XHoVLTSBkBYoL8DRq/demo_speaker1.mp3"' \
-i 'speed=1' \
-i 'style="default"' \
-i 'prompt="He hoped there would be stew for dinner, turnips and carrots and bruised potatoes and fat mutton pieces to be ladled out in thick, peppered, flour-fattened sauce."' \
-i 'agree_terms=true'
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:af9877f21c4e040357eb6424ecddd7199367be2d8667ad4b6bbd306cbcd326e4
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "audio": "https://replicate.delivery/pbxt/KB9Tfj0o8VwpnYirmw4Jjz6OeShKvw3XHoVLTSBkBYoL8DRq/demo_speaker1.mp3", "speed": 1, "style": "default", "prompt": "He hoped there would be stew for dinner, turnips and carrots and bruised potatoes and fat mutton pieces to be ladled out in thick, peppered, flour-fattened sauce.", "agree_terms": true } }' \ http://localhost:5000/predictions
Add a payment method to run this model.
Each run costs approximately $0.0067. 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-01-06T12:16:57.006690Z",
"created_at": "2024-01-06T12:16:51.648010Z",
"data_removed": false,
"error": null,
"id": "bdvzpotb7p6fq3tokdpazbiloq",
"input": {
"audio": "https://replicate.delivery/pbxt/KB9Tfj0o8VwpnYirmw4Jjz6OeShKvw3XHoVLTSBkBYoL8DRq/demo_speaker1.mp3",
"speed": 1,
"style": "default",
"prompt": "He hoped there would be stew for dinner, turnips and carrots and bruised potatoes and fat mutton pieces to be ladled out in thick, peppered, flour-fattened sauce.",
"agree_terms": true
},
"logs": "Detected language:en\n[(0.43, 13.97), (14.51, 29.682), (29.966, 40.722), (41.038, 54.29), (55.086, 59.218), (59.662, 61.266), (62.51, 67.314), (67.438, 69.042), (69.646, 79.442), (80.334, 86.386), (86.414, 91.090875)]\nafter vad: dur = 85.38802721088436\n> Text splitted to sentences.\nHe hoped there would be stew for dinner, turnips and carrots and bruised potatoes and fat mutton pieces to be ladled out in thick,\npeppered, flour-fattened sauce.\n> ===========================\nhi hoʊpt ðɛɹ wʊd bi stu fəɹ ˈdɪnəɹ, ˈtəɹnəps ənd ˈkɛɹəts ənd bɹuzd pəˈteɪtoʊz ənd fæt ˈmətən ˈpisɪz tɪ bi ˈleɪdəɫd aʊt ɪn θɪk,\nlength:126\nlength:126\nˈpɛpəɹd, flouɹ-fattened* sɔs.\nlength:29\nlength:29",
"metrics": {
"predict_time": 5.325492,
"total_time": 5.35868
},
"output": "https://replicate.delivery/pbxt/W61TUeFTmW3ZY63z1ooNrzzgYeB2mYeqYaOC3fNUBlmgr9mIB/out.wav",
"started_at": "2024-01-06T12:16:51.681198Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/bdvzpotb7p6fq3tokdpazbiloq",
"cancel": "https://api.replicate.com/v1/predictions/bdvzpotb7p6fq3tokdpazbiloq/cancel"
},
"version": "af9877f21c4e040357eb6424ecddd7199367be2d8667ad4b6bbd306cbcd326e4"
}
Detected language:en
[(0.43, 13.97), (14.51, 29.682), (29.966, 40.722), (41.038, 54.29), (55.086, 59.218), (59.662, 61.266), (62.51, 67.314), (67.438, 69.042), (69.646, 79.442), (80.334, 86.386), (86.414, 91.090875)]
after vad: dur = 85.38802721088436
> Text splitted to sentences.
He hoped there would be stew for dinner, turnips and carrots and bruised potatoes and fat mutton pieces to be ladled out in thick,
peppered, flour-fattened sauce.
> ===========================
hi hoʊpt ðɛɹ wʊd bi stu fəɹ ˈdɪnəɹ, ˈtəɹnəps ənd ˈkɛɹəts ənd bɹuzd pəˈteɪtoʊz ənd fæt ˈmətən ˈpisɪz tɪ bi ˈleɪdəɫd aʊt ɪn θɪk,
length:126
length:126
ˈpɛpəɹd, flouɹ-fattened* sɔs.
length:29
length:29