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.
Text to synthesize
Reference audio file to clone from <= 5 seconds
Default: "./docs/assets/example_ref.wav"
any additional metadata information about the synthesis (e.g adding laughs, sighs, pauses...)
Default: "We havent actually managed to meet the man"
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:1d33dc29c0a9d3e9aff6549b61a5673d20defa384adad4f55636a487c5e99a70", { input: { ref_audio_file: "./docs/assets/example_ref.wav", ref_audio_transcript: "We havent actually managed to meet the man" } } ); // 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:1d33dc29c0a9d3e9aff6549b61a5673d20defa384adad4f55636a487c5e99a70", input={ "ref_audio_file": "./docs/assets/example_ref.wav", "ref_audio_transcript": "We havent actually managed to meet the man" } ) 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:1d33dc29c0a9d3e9aff6549b61a5673d20defa384adad4f55636a487c5e99a70", "input": { "ref_audio_file": "./docs/assets/example_ref.wav", "ref_audio_transcript": "We havent actually managed to meet the man" } }' \ 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