Create a voice clone from an audio sample for use with the Text-to-Speech API.
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 } }
url
file_store_key
Was this page helpful?