curl -X POST "https://api.destined.ai/v1/tts/synthesize" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "speaker_id": "abc123-def456", "text": "Hello, this is a test of the Destined Voice API." }'
const result = await client.ttsGeneration.synthesizeSpeechV1TtsSynthesizePost({ speakerId: "abc123-def456", text: "Hello, this is a test of the Destined Voice API.",});console.log(result.audioUrl);
{ "detail": "Text exceeds maximum length of 2000 characters"}
{ "detail": "Speaker not found"}
{ "detail": "Character quota exceeded for this billing period"}
TTS Generation
Synthesize Speech
Generate speech audio from text
POST
/
v1
/
tts
/
synthesize
curl -X POST "https://api.destined.ai/v1/tts/synthesize" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "speaker_id": "abc123-def456", "text": "Hello, this is a test of the Destined Voice API." }'
const result = await client.ttsGeneration.synthesizeSpeechV1TtsSynthesizePost({ speakerId: "abc123-def456", text: "Hello, this is a test of the Destined Voice API.",});console.log(result.audioUrl);
curl -X POST "https://api.destined.ai/v1/tts/synthesize" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "speaker_id": "abc123-def456", "text": "Hello, this is a test of the Destined Voice API." }'
const result = await client.ttsGeneration.synthesizeSpeechV1TtsSynthesizePost({ speakerId: "abc123-def456", text: "Hello, this is a test of the Destined Voice API.",});console.log(result.audioUrl);