Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
zsxkib /hololive-style-bert-vits2:677f6487
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";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run zsxkib/hololive-style-bert-vits2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"zsxkib/hololive-style-bert-vits2:677f64873933fb3b6f9f71a1db90537e560b1f4cb5dd4f8258f8fa40ffcf213e",
{
input: {
style: "Neutral",
speaker: "MoriCalliope",
language: "EN",
use_tone: false,
sdp_ratio: 0.2,
line_split: true,
style_text: "",
text_input: "Hello there! This is test audio of a new Hololive text to speech tool (text-to-voice)",
noise_scale: 0.6,
length_scale: 1,
style_weight: 5,
noise_scale_w: 0.8,
split_interval: 0.5,
use_style_text: false,
style_text_weight: 0.7
}
}
);
// To access the file URL:
console.log(output.url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", 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 zsxkib/hololive-style-bert-vits2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"zsxkib/hololive-style-bert-vits2:677f64873933fb3b6f9f71a1db90537e560b1f4cb5dd4f8258f8fa40ffcf213e",
input={
"style": "Neutral",
"speaker": "MoriCalliope",
"language": "EN",
"use_tone": False,
"sdp_ratio": 0.2,
"line_split": True,
"style_text": "",
"text_input": "Hello there! This is test audio of a new Hololive text to speech tool (text-to-voice)",
"noise_scale": 0.6,
"length_scale": 1,
"style_weight": 5,
"noise_scale_w": 0.8,
"split_interval": 0.5,
"use_style_text": False,
"style_text_weight": 0.7
}
)
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 zsxkib/hololive-style-bert-vits2 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": "zsxkib/hololive-style-bert-vits2:677f64873933fb3b6f9f71a1db90537e560b1f4cb5dd4f8258f8fa40ffcf213e",
"input": {
"style": "Neutral",
"speaker": "MoriCalliope",
"language": "EN",
"use_tone": false,
"sdp_ratio": 0.2,
"line_split": true,
"style_text": "",
"text_input": "Hello there! This is test audio of a new Hololive text to speech tool (text-to-voice)",
"noise_scale": 0.6,
"length_scale": 1,
"style_weight": 5,
"noise_scale_w": 0.8,
"split_interval": 0.5,
"use_style_text": false,
"style_text_weight": 0.7
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
Output
No output yet! Press "Submit" to start a prediction.