Generate Text-to-Speech
Convert text to speech using various AI voices. The generated audio is returned as a publicly accessible URL.
Usage Limits:
- Free plan: Limited words per billing period
- Paid plans: Higher limits based on subscription tier
Authorizations
API key for authentication. Get yours at https://easy-peasy.ai/settings/api
Headers
Your API key
Body
Voice ID to use for generation (get IDs from the Get TTS Voices endpoint)
"21m00Tcm4TlvDq8ikWAM"
The text to convert to speech
"Hello! This is a test of the text-to-speech API."
Response
Successfully generated audio
Publicly accessible URL of the generated audio file (MP3)
"https://media.easy-peasy.ai/tts/27feb2bb-aeb4-4a83-9fb6-8f3f2a15885e/6848fb55-48e7-455d-bd56-3cb5ce2cd81e.mp3"
ID of the audio
"550e8400-e29b-41d4-a716-446655440000"
Word count of the text (used for billing)
10
Status of the speech generation
completed "completed"
