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.
This is a modal window.
Beginning of dialog window. Escape will cancel and close the window.
End of dialog window.
Default: 95
Default: 0.5
Default: 3
Text to synthesize
Default: "We actually haven't managed to meet demand."
Reference audio file to clone from <= 10 seconds
Default: "https://storage.googleapis.com/cambai-prod-bucket/be6df3.wav"
Text in the reference audio file
Default: "Hi there. How are you doing?"
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
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 camb-ai/mars5-tts using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "camb-ai/mars5-tts:0ddbf483082c507b102318ee81d42ba55fd2cfdb42589e5f24e39fae5dea86ae", { input: { text: "We actually haven't managed to meet demand.", top_k: 95, temperature: 0.5, freq_penalty: 3, ref_audio_file: "https://storage.googleapis.com/cambai-prod-bucket/be6df3.wav", rep_penalty_window: 95, ref_audio_transcript: "Hi there. How are you doing?" } } ); // 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
import replicate
output = replicate.run( "camb-ai/mars5-tts:0ddbf483082c507b102318ee81d42ba55fd2cfdb42589e5f24e39fae5dea86ae", input={ "text": "We actually haven't managed to meet demand.", "top_k": 95, "temperature": 0.5, "freq_penalty": 3, "ref_audio_file": "https://storage.googleapis.com/cambai-prod-bucket/be6df3.wav", "rep_penalty_window": 95, "ref_audio_transcript": "Hi there. How are you doing?" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "camb-ai/mars5-tts:0ddbf483082c507b102318ee81d42ba55fd2cfdb42589e5f24e39fae5dea86ae", "input": { "text": "We actually haven\'t managed to meet demand.", "top_k": 95, "temperature": 0.5, "freq_penalty": 3, "ref_audio_file": "https://storage.googleapis.com/cambai-prod-bucket/be6df3.wav", "rep_penalty_window": 95, "ref_audio_transcript": "Hi there. How are you doing?" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
No output yet! Press "Submit" to start a prediction.
Choose a file from your machine
Hint: you can also drag files onto the input