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": "81dbed76-73fb-4415-9c61-ca4981b548b1",
  "_usage": {
        "input_tokens": 7,
        "output_tokens": 4,
        "inference_time_tokens": 374,
        "total_tokens": 385
  }
}

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": "81dbed76-73fb-4415-9c61-ca4981b548b1",
  "_usage": {
        "input_tokens": 7,
        "output_tokens": 4,
        "inference_time_tokens": 374,
        "total_tokens": 385
  }
}