AI voice workflow

Text to MP3

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

Audio files for courses and guides
Text to play back in an application
Product and service messages
Voice prompts for queues or menus

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.

Save and review the result

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.

What to check before launch

Evaluate results with your own material. Keep separate results for each language and recording or playback condition.

Try a representative sample

Generate a short script. Check pronunciation, numbers, pauses and missing words with a fluent listener.

Connect it to the product

Keep API credentials on your server. Check documented formats, limits and response states, and test a failed request before automating the process.

Review each language

Do not generalize one language result to the entire catalog. Ask someone familiar with the target accent and terminology to review the output.

How it works

1

Split the script into passages and choose its language.

2

Send a server-side request to the TTS endpoint documented in the API reference.

3

Store the returned audio path and listen to the file; use a separate audio converter if you need MP3.

Frequently asked questions

Does the text-to-MP3 workflow save the audio file automatically?

The API response provides an audio path. Implement retrieval and storage in the application that uses the response.

Can I send any amount of text in one request?

Check the current fields and limits in the API reference rather than assuming a size. Split longer scripts into manageable passages.

How can I confirm the result is MP3?

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.