defaultHey, how are you doing today?
typetext
{
"description": "A male speaker with a low-pitched voice delivering his words at a fast pace in a small, confined space with a very clear audio and an animated tone.",
"prompt": "Remember - this is only the first iteration of the model! To improve the prosody and naturalness of the speech further, we're scaling up the amount of training data by a factor of five times."
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_6or**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run cjwbw/parler-tts using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"cjwbw/parler-tts:bf38249a8cc143b97b5108570d1c81b8321881dd91fe7837877e7dfa3a0fad27",
{
input: {
description: "A male speaker with a low-pitched voice delivering his words at a fast pace in a small, confined space with a very clear audio and an animated tone.",
prompt: "Remember - this is only the first iteration of the model! To improve the prosody and naturalness of the speech further, we're scaling up the amount of training data by a factor of five times."
}
}
);
// 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=r8_6or**********************************
This is your API token. Keep it to yourself.
import replicate
Run cjwbw/parler-tts using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"cjwbw/parler-tts:bf38249a8cc143b97b5108570d1c81b8321881dd91fe7837877e7dfa3a0fad27",
input={
"description": "A male speaker with a low-pitched voice delivering his words at a fast pace in a small, confined space with a very clear audio and an animated tone.",
"prompt": "Remember - this is only the first iteration of the model! To improve the prosody and naturalness of the speech further, we're scaling up the amount of training data by a factor of five times."
}
)
# To access the file URL:
print(output.url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output.read())
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_6or**********************************
This is your API token. Keep it to yourself.
Run cjwbw/parler-tts 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": "cjwbw/parler-tts:bf38249a8cc143b97b5108570d1c81b8321881dd91fe7837877e7dfa3a0fad27",
"input": {
"description": "A male speaker with a low-pitched voice delivering his words at a fast pace in a small, confined space with a very clear audio and an animated tone.",
"prompt": "Remember - this is only the first iteration of the model! To improve the prosody and naturalness of the speech further, we\'re scaling up the amount of training data by a factor of five times."
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "atwkxrzx6xrgg0cewffvsypa74",
"model": "cjwbw/parler-tts",
"version": "bf38249a8cc143b97b5108570d1c81b8321881dd91fe7837877e7dfa3a0fad27",
"input": {
"description": "A male speaker with a low-pitched voice delivering his words at a fast pace in a small, confined space with a very clear audio and an animated tone.",
"prompt": "Remember - this is only the first iteration of the model! To improve the prosody and naturalness of the speech further, we're scaling up the amount of training data by a factor of five times."
},
"logs": "Using the model-agnostic default `max_length` (=2580) to control the generation length. We recommend setting `max_new_tokens` to control the maximum length of the generation.",
"output": "https://replicate.delivery/pbxt/CaOHETLuHVIFL5UESbpienV3BNnYkQQQKEflLeP12I1XkrVlA/out.wav",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2024-04-15T22:28:11.191Z",
"started_at": "2024-04-15T22:30:19.880035Z",
"completed_at": "2024-04-15T22:30:36.255422Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/atwkxrzx6xrgg0cewffvsypa74/cancel",
"get": "https://api.replicate.com/v1/predictions/atwkxrzx6xrgg0cewffvsypa74",
"web": "https://replicate.com/p/atwkxrzx6xrgg0cewffvsypa74"
},
"metrics": {
"predict_time": 16.375387,
"total_time": 145.064422
}
}