Prepare text for a TTS request
Split the script into clear, manageable passages and select the appropriate language for each request. Use the API reference for authentication, supported fields and response details.
AI voice workflow
The text-to-speech workflow returns audio from text; the documented sync example shows a `.wav` file. If you need MP3, convert the returned audio separately with an audio tool.
Aisha AI · Updated
Use case
Split the script into clear, manageable passages and select the appropriate language for each request. Use the API reference for authentication, supported fields and response details.
Open the audio path from the response and listen through the full clip. Check pronunciation, numbers, pauses and sentence endings before saving or passing it to your application.
Evaluate results with your own material. Keep separate results for each language and recording or playback condition.
Generate a short script. Check pronunciation, numbers, pauses and missing words with a fluent listener.
Keep API credentials on your server. Check documented formats, limits and response states, and test a failed request before automating the process.
Do not generalize one language result to the entire catalog. Ask someone familiar with the target accent and terminology to review the output.
Set the API key in your server environment and prepare the text.
Send the text and language to the TTS endpoint documented in the API reference.
Retrieve the audio response, listen for errors and save it where your workflow needs it.
The documented sync example returns an `audio_path` ending in `.wav`. Check the downloaded file or media type; if your workflow requires MP3, convert it separately with an audio tool.
Listen to the returned audio and compare pronunciation, numbers and complete sentence endings against the source text.
Keep the key in a server environment variable. Do not expose it in browser code or a public repository.