You're looking at a specific version of this model. Jump to the model overview.
ttsds /gptsovits_2:7b49064a
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable:export 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 ttsds/gptsovits_2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"ttsds/gptsovits_2:7b49064a36acf3a00679ab61a41efb0370a0dbfcddd42509934400439372f43c",
{
input: {
text: "With tenure, Suzie'd have all the more leisure for yachting, but her publications are no good.",
language: "en",
text_reference: "and keeping eternity before the eyes, though much.",
speaker_reference: "https://replicate.delivery/pbxt/MNDu8UJR7zB1dZHG3UOPCD5B4crZunv2j32UsTd3Qd5PdG1R/example.wav"
}
}
);
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 variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run ttsds/gptsovits_2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"ttsds/gptsovits_2:7b49064a36acf3a00679ab61a41efb0370a0dbfcddd42509934400439372f43c",
input={
"text": "With tenure, Suzie'd have all the more leisure for yachting, but her publications are no good.",
"language": "en",
"text_reference": "and keeping eternity before the eyes, though much.",
"speaker_reference": "https://replicate.delivery/pbxt/MNDu8UJR7zB1dZHG3UOPCD5B4crZunv2j32UsTd3Qd5PdG1R/example.wav"
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run ttsds/gptsovits_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": "7b49064a36acf3a00679ab61a41efb0370a0dbfcddd42509934400439372f43c",
"input": {
"text": "With tenure, Suzie\'d have all the more leisure for yachting, but her publications are no good.",
"language": "en",
"text_reference": "and keeping eternity before the eyes, though much.",
"speaker_reference": "https://replicate.delivery/pbxt/MNDu8UJR7zB1dZHG3UOPCD5B4crZunv2j32UsTd3Qd5PdG1R/example.wav"
}
}' \
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.
Run this to download the model and run it in your local environment:
cog predict r8.im/ttsds/gptsovits_2@sha256:7b49064a36acf3a00679ab61a41efb0370a0dbfcddd42509934400439372f43c \
-i $'text="With tenure, Suzie\'d have all the more leisure for yachting, but her publications are no good."' \
-i 'language="en"' \
-i 'text_reference="and keeping eternity before the eyes, though much."' \
-i 'speaker_reference="https://replicate.delivery/pbxt/MNDu8UJR7zB1dZHG3UOPCD5B4crZunv2j32UsTd3Qd5PdG1R/example.wav"'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 --gpus=all r8.im/ttsds/gptsovits_2@sha256:7b49064a36acf3a00679ab61a41efb0370a0dbfcddd42509934400439372f43c
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "text": "With tenure, Suzie\'d have all the more leisure for yachting, but her publications are no good.", "language": "en", "text_reference": "and keeping eternity before the eyes, though much.", "speaker_reference": "https://replicate.delivery/pbxt/MNDu8UJR7zB1dZHG3UOPCD5B4crZunv2j32UsTd3Qd5PdG1R/example.wav" } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Add a payment method to run this model.
Each run costs approximately $0.0023. 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": "2025-01-29T14:45:36.579947Z",
"created_at": "2025-01-29T14:44:03.388000Z",
"data_removed": false,
"error": null,
"id": "98avf0qcqhrm80cmpa2ba84p6r",
"input": {
"text": "With tenure, Suzie'd have all the more leisure for yachting, but her publications are no good.",
"language": "en",
"text_reference": "and keeping eternity before the eyes, though much.",
"speaker_reference": "https://replicate.delivery/pbxt/MNDu8UJR7zB1dZHG3UOPCD5B4crZunv2j32UsTd3Qd5PdG1R/example.wav"
},
"logs": "[nltk_data] Downloading package averaged_perceptron_tagger to\n[nltk_data] /root/nltk_data...\n[nltk_data] Unzipping taggers/averaged_perceptron_tagger.zip.\n[nltk_data] Downloading package cmudict to /root/nltk_data...\n[nltk_data] Unzipping corpora/cmudict.zip.\n 0%| | 0/1500 [00:00<?, ?it/s]\n 0%| | 6/1500 [00:00<00:25, 58.63it/s]\n 3%|▎ | 42/1500 [00:00<00:06, 231.98it/s]\n 5%|▌ | 76/1500 [00:00<00:05, 280.74it/s]\nT2S Decoding EOS [92 -> 235]\n 7%|▋ | 111/1500 [00:00<00:04, 304.74it/s]\n9%|▉ | 142/1500 [00:00<00:04, 284.36it/s]",
"metrics": {
"predict_time": 4.560258705,
"total_time": 93.191947
},
"output": "https://replicate.delivery/xezq/xeVDshOVN51wESi1tRXlTT2YFwJw02GeG4h7xk13t5vQEfToA/audio.wav",
"started_at": "2025-01-29T14:45:32.019688Z",
"status": "succeeded",
"urls": {
"stream": "https://stream.replicate.com/v1/files/bsvm-an56ydcwambuahtsg4ww4d73zc2vbmq45mtiqy2wyhyolx4pxq4a",
"get": "https://api.replicate.com/v1/predictions/98avf0qcqhrm80cmpa2ba84p6r",
"cancel": "https://api.replicate.com/v1/predictions/98avf0qcqhrm80cmpa2ba84p6r/cancel"
},
"version": "6a07d99aa767fcd2eed3583e79394d050c9594f12219c8ac88f3cd7e3bff0cdb"
}
[nltk_data] Downloading package averaged_perceptron_tagger to
[nltk_data] /root/nltk_data...
[nltk_data] Unzipping taggers/averaged_perceptron_tagger.zip.
[nltk_data] Downloading package cmudict to /root/nltk_data...
[nltk_data] Unzipping corpora/cmudict.zip.
0%| | 0/1500 [00:00<?, ?it/s]
0%| | 6/1500 [00:00<00:25, 58.63it/s]
3%|▎ | 42/1500 [00:00<00:06, 231.98it/s]
5%|▌ | 76/1500 [00:00<00:05, 280.74it/s]
T2S Decoding EOS [92 -> 235]
7%|▋ | 111/1500 [00:00<00:04, 304.74it/s]
9%|▉ | 142/1500 [00:00<00:04, 284.36it/s]
This example was created by a different version, ttsds/gptsovits_2:6a07d99a.