ttsds / parlertts_mini_1_1_fixed

  • Public
  • 1 run
  • A100 (80GB)

Run ttsds/parlertts_mini_1_1_fixed with an API

Use one of our client libraries to get started quickly.

Set the REPLICATE_API_TOKEN environment variable

export REPLICATE_API_TOKEN=<paste-your-token-here>

Learn more about authentication

Install Replicate’s Node.js client library

npm install replicate
Learn more about setup

Run ttsds/parlertts_mini_1_1_fixed using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.

import Replicate from "replicate";
const replicate = new Replicate();

const input = {
    text: "With tenure, Suzie'd have all the more leisure for yachting, but her publications are no good.",
    text_reference: "and keeping eternity before the eyes, though much.",
    speaker_reference: "https://replicate.delivery/pbxt/MNFXdPaUPOwYCZjZM4azsymbzE2TCV2WJXfGpeV2DrFWaSq8/example_en.wav"
};

const output = await replicate.run("ttsds/parlertts_mini_1_1_fixed:0e01182bff297bf504f72f8e5a1db3512aec4d05b1127abf2acdd7e0baf1e65d", { input });

import { writeFile } from "node:fs/promises";
await writeFile("output.wav", output);
//=> output.wav written to disk
Learn more