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.
ttsds /amphion_valle:ea4a4a59
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/amphion_valle using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"ttsds/amphion_valle:ea4a4a593f9692b7c796e23f1a4b4cbdd64b346bb67e2185688719ebe5b3a8e2",
{
input: {
text: "The quick brown fox jumped over the lazy dog.",
model: "valle_v1_medium",
speaker_reference: "https://replicate.delivery/pbxt/MN7y14TBntirZOHMndN2DuLbqPPeHrPwBlGZKCBNO56KTfjj/example%281%29.wav"
}
}
);
// 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 ttsds/amphion_valle using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"ttsds/amphion_valle:ea4a4a593f9692b7c796e23f1a4b4cbdd64b346bb67e2185688719ebe5b3a8e2",
input={
"text": "The quick brown fox jumped over the lazy dog.",
"model": "valle_v1_medium",
"speaker_reference": "https://replicate.delivery/pbxt/MN7y14TBntirZOHMndN2DuLbqPPeHrPwBlGZKCBNO56KTfjj/example%281%29.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/amphion_valle 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": "ttsds/amphion_valle:ea4a4a593f9692b7c796e23f1a4b4cbdd64b346bb67e2185688719ebe5b3a8e2",
"input": {
"text": "The quick brown fox jumped over the lazy dog.",
"model": "valle_v1_medium",
"speaker_reference": "https://replicate.delivery/pbxt/MN7y14TBntirZOHMndN2DuLbqPPeHrPwBlGZKCBNO56KTfjj/example%281%29.wav"
}
}' \
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
- 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-23T14:07:56.040557Z",
"created_at": "2025-01-23T14:07:52.573000Z",
"data_removed": false,
"error": null,
"id": "xte3knd4znrme0cmjdyrka3ge0",
"input": {
"text": "The quick brown fox jumped over the lazy dog.",
"model": "valle_v1_medium",
"speaker_reference": "https://replicate.delivery/pbxt/MN7y14TBntirZOHMndN2DuLbqPPeHrPwBlGZKCBNO56KTfjj/example%281%29.wav"
},
"logs": "2025-01-23 14:07:53 | WARNING | phonemizer | words count mismatch on 100.0% of the lines (1/1)\n2025-01-23 14:07:53 | WARNING | phonemizer | words count mismatch on 100.0% of the lines (1/1)\nSaved to: /results/bca60574680df7bd102d430a043701d2237bd8590360263e5d0005e11abbed6e/single",
"metrics": {
"predict_time": 3.457388687,
"total_time": 3.467557
},
"output": "https://replicate.delivery/xezq/pDZCIRjpYXYHKxtUayYR95u4asQPJ5fhVXeKVfwFw2F55ffgC/test_pred.wav",
"started_at": "2025-01-23T14:07:52.583168Z",
"status": "succeeded",
"urls": {
"stream": "https://stream.replicate.com/v1/files/bcwr-wyglzzobtitl33xn3xl5r4nkgw2hyp22gqh6jnjevrdrdxez55wq",
"get": "https://api.replicate.com/v1/predictions/xte3knd4znrme0cmjdyrka3ge0",
"cancel": "https://api.replicate.com/v1/predictions/xte3knd4znrme0cmjdyrka3ge0/cancel"
},
"version": "ea4a4a593f9692b7c796e23f1a4b4cbdd64b346bb67e2185688719ebe5b3a8e2"
}
2025-01-23 14:07:53 | WARNING | phonemizer | words count mismatch on 100.0% of the lines (1/1)
2025-01-23 14:07:53 | WARNING | phonemizer | words count mismatch on 100.0% of the lines (1/1)
Saved to: /results/bca60574680df7bd102d430a043701d2237bd8590360263e5d0005e11abbed6e/single