Prepare text for an audio file
Split long scripts into meaningful passages. Include the language for each request and authenticate with an API key on the server.
AI voice workflow
The TTS API 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 long scripts into meaningful passages. Include the language for each request and authenticate with an API key on the server.
The documented sync example returns a TTS audio_path ending in .wav. Check the downloaded file or media type; use a separate audio converter for MP3.
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.
Split the script into passages and choose its language.
Send a server-side request to the TTS endpoint documented in the API reference.
Store the returned audio path and listen to the file; use a separate audio converter if you need MP3.
The API response provides an audio path. Implement retrieval and storage in the application that uses the response.
Check the current fields and limits in the API reference rather than assuming a size. Split longer scripts into manageable passages.
The documented sync example returns an audio_path ending in .wav. Check the downloaded file; if you need MP3, convert it separately with an audio tool.