curl --location 'https://v3.mayaresearch.ai/v1/tts/generate' \--header 'Content-Type: application/json' \--header 'X-API-Key: maya_YOUR_API_KEY_HERE' \--data '{ "voice_id": "Ava", "text": "Welcome back to another episode of our podcast! Today we are diving into an absolutely fascinating topic.", "stream": false}'
Copy
Audio file will be returned in WAV or MP3 format
Maya1 API Reference
Generate Speech with Maya1
Generate speech using pre-designed character voices
POST
/
v1
/
tts
/
generate
Copy
curl --location 'https://v3.mayaresearch.ai/v1/tts/generate' \--header 'Content-Type: application/json' \--header 'X-API-Key: maya_YOUR_API_KEY_HERE' \--data '{ "voice_id": "Ava", "text": "Welcome back to another episode of our podcast! Today we are diving into an absolutely fascinating topic.", "stream": false}'
Copy
Audio file will be returned in WAV or MP3 format
This endpoint generates high-quality speech audio using pre-designed character voices. Supports streaming, emotional tags, and verbose output.
true - Stream audio chunks as they’re generated (lower latency)
false - Return complete audio file after processing
Copy
curl --location 'https://v3.mayaresearch.ai/v1/tts/generate' \--header 'Content-Type: application/json' \--header 'X-API-Key: maya_YOUR_API_KEY_HERE' \--data '{ "voice_id": "Ava", "text": "Welcome back to another episode of our podcast! Today we are diving into an absolutely fascinating topic.", "stream": false}'
{ "voice_id": "Ava", "text": "Welcome back to another episode of our podcast! Today we're diving into an absolutely fascinating topic that I know you're going to love.", "stream": false}
Copy
{ "voice_id": "Emma", "text": "Oh my gosh, you won't believe what happened today! It was absolutely incredible. This is exactly the kind of story I love to share with you all.", "stream": false}
Copy
{ "voice_id": "Noah", "text": "Welcome back to another episode! Today we have something really special planned. Have you ever wondered how AI voices actually work? Let's dive right in and explore this amazing topic together.", "stream": true}
Copy
{ "voice_id": "Liam", "text": "Hello and welcome to today's show. We have an incredible lineup for you today that you absolutely won't want to miss.", "stream": false}
Copy
{ "voice_id": "James", "text": "Thank you for tuning in to another episode. Today's conversation is going to be particularly interesting as we explore some cutting-edge developments in the field.", "stream": false}
Copy
{ "voice_id": "Chloe", "text": "Good evening and welcome back. I'm absolutely delighted to have you with us today as we delve into this fascinating subject matter.", "stream": false}
Copy
{ "voice_id": "Sophie", "text": "Greetings everyone, and welcome to today's discussion. We have quite an extraordinary topic lined up that I'm confident you'll find thoroughly engaging.", "stream": false}
Copy
{ "voice_id": "Oliver", "text": "Welcome to this special episode where we explore some truly remarkable insights and perspectives on the subject at hand.", "stream": false}
Store and reuse character IDs for consistent voice across your application.
Enable Streaming
Streaming reduces perceived latency for interactive applications and long content.
Batch Requests
Generate multiple audio files in parallel when possible to maximize throughput.
Optimize Text
Break very long text into manageable chunks (under 1,000 characters) for better performance.
Pro tip: For consistent brand voice across your application, select the right voice once, test thoroughly, then reuse the same voice_id for all subsequent generations.
"Welcome back to another episode of our podcast! Today we're diving into an absolutely fascinating topic that I know you're going to love. We've got some incredible insights to share with you, so let's get started right away."