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/KB9YGZ4v1woTUDd8rSRlizdqIQjxqGjDnosgvlQkTZo7IRI7/demo_speaker0.mp3",
speed: 1,
style: "friendly",
prompt: "OpenVoice enables granular control over voice styles, including emotion, accent, rhythm, pauses, and intonation, in addition to replicating the tone color of the reference speaker.",
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/KB9YGZ4v1woTUDd8rSRlizdqIQjxqGjDnosgvlQkTZo7IRI7/demo_speaker0.mp3",
"speed": 1,
"style": "friendly",
"prompt": "OpenVoice enables granular control over voice styles, including emotion, accent, rhythm, pauses, and intonation, in addition to replicating the tone color of the reference speaker.",
"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/KB9YGZ4v1woTUDd8rSRlizdqIQjxqGjDnosgvlQkTZo7IRI7/demo_speaker0.mp3",
"speed": 1,
"style": "friendly",
"prompt": "OpenVoice enables granular control over voice styles, including emotion, accent, rhythm, pauses, and intonation, in addition to replicating the tone color of the reference speaker.",
"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/KB9YGZ4v1woTUDd8rSRlizdqIQjxqGjDnosgvlQkTZo7IRI7/demo_speaker0.mp3"' \
-i 'speed=1' \
-i 'style="friendly"' \
-i 'prompt="OpenVoice enables granular control over voice styles, including emotion, accent, rhythm, pauses, and intonation, in addition to replicating the tone color of the reference speaker."' \
-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/KB9YGZ4v1woTUDd8rSRlizdqIQjxqGjDnosgvlQkTZo7IRI7/demo_speaker0.mp3", "speed": 1, "style": "friendly", "prompt": "OpenVoice enables granular control over voice styles, including emotion, accent, rhythm, pauses, and intonation, in addition to replicating the tone color of the reference speaker.", "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:21:44.891938Z",
"created_at": "2024-01-06T12:21:42.155130Z",
"data_removed": false,
"error": null,
"id": "dhvcmwlbkwbk5ameolyifbeccy",
"input": {
"audio": "https://replicate.delivery/pbxt/KB9YGZ4v1woTUDd8rSRlizdqIQjxqGjDnosgvlQkTZo7IRI7/demo_speaker0.mp3",
"speed": 1,
"style": "friendly",
"prompt": "OpenVoice enables granular control over voice styles, including emotion, accent, rhythm, pauses, and intonation, in addition to replicating the tone color of the reference speaker.",
"agree_terms": true
},
"logs": "Detected language:en\n[(0.0, 19.278375)]\nafter vad: dur = 19.27798185941043\n> Text splitted to sentences.\nOpenVoice enables granular control over voice styles, including emotion, accent, rhythm,\npauses, and intonation, in addition to replicating the tone color of the reference speaker.\n> ===========================\nˈoʊpən vɔɪs ɪˈneɪbəɫz ˈgɹænjələɹ kənˈtɹoʊɫ ˈoʊvəɹ vɔɪs staɪɫz, ˌɪnˈkludɪŋ ˈiˌmoʊʃən, ˈækˌsɛnt, ˈɹɪðəm,\nlength:102\nlength:102\nˈpɔzɪz, ənd ˌɪntəˈneɪʃən, ɪn əˈdɪʃən tɪ ˈɹɛplɪˌkeɪtɪŋ ðə toʊn ˈkələɹ əv ðə ˈɹɛfəɹəns ˈspikəɹ.\nlength:93\nlength:93",
"metrics": {
"predict_time": 2.6993,
"total_time": 2.736808
},
"output": "https://replicate.delivery/pbxt/pYqzoAb4CwrfPSdjMWPrG4TsYLpMHkwyuQBoWhZBsJAsv3EJA/out.wav",
"started_at": "2024-01-06T12:21:42.192638Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/dhvcmwlbkwbk5ameolyifbeccy",
"cancel": "https://api.replicate.com/v1/predictions/dhvcmwlbkwbk5ameolyifbeccy/cancel"
},
"version": "af9877f21c4e040357eb6424ecddd7199367be2d8667ad4b6bbd306cbcd326e4"
}
Detected language:en
[(0.0, 19.278375)]
after vad: dur = 19.27798185941043
> Text splitted to sentences.
OpenVoice enables granular control over voice styles, including emotion, accent, rhythm,
pauses, and intonation, in addition to replicating the tone color of the reference speaker.
> ===========================
ˈoʊpən vɔɪs ɪˈneɪbəɫz ˈgɹænjələɹ kənˈtɹoʊɫ ˈoʊvəɹ vɔɪs staɪɫz, ˌɪnˈkludɪŋ ˈiˌmoʊʃən, ˈækˌsɛnt, ˈɹɪðəm,
length:102
length:102
ˈpɔzɪz, ənd ˌɪntəˈneɪʃən, ɪn əˈdɪʃən tɪ ˈɹɛplɪˌkeɪtɪŋ ðə toʊn ˈkələɹ əv ðə ˈɹɛfəɹəns ˈspikəɹ.
length:93
length:93