POST
/
v1
/
ai
/
tts
/
clone
import { JigsawStack } from "jigsawstack";

const jigsaw = JigsawStack({ apiKey: "your-api-key" });

const response = await jigsaw.audio.create_clone({
  "url": "https://jigsawstack.com/preview/tts-clone-example.mp3",
  "name": "Elon Musk"
})
{
  "voice_id": "4f2ff5b3-cd54-4bd9-95a1-56ca81236a09",
  "_usage": {
        "input_tokens": 7,
        "output_tokens": 4,
        "inference_time_tokens": 335,
        "total_tokens": 346
  }
}

Body

name
string
required

A descriptive name for the voice clone. This helps you identify the voice in your account.

url
string
required

A public URL to an audio file that will be used as the source for creating the voice clone.

file_store_key
string

The unique identifier of an audio file in Jigsawstack file storage that contains a sample of the voice you want to clone.

You must provide either a url or a file_store_key, but at least one is required. You cannot provide both at the same time.
x-api-key
string
required

Your JigsawStack API key

import { JigsawStack } from "jigsawstack";

const jigsaw = JigsawStack({ apiKey: "your-api-key" });

const response = await jigsaw.audio.create_clone({
  "url": "https://jigsawstack.com/preview/tts-clone-example.mp3",
  "name": "Elon Musk"
})
{
  "voice_id": "4f2ff5b3-cd54-4bd9-95a1-56ca81236a09",
  "_usage": {
        "input_tokens": 7,
        "output_tokens": 4,
        "inference_time_tokens": 335,
        "total_tokens": 346
  }
}