Turning text into speech with AI: phone greetings, voice-overs and adverts

All in One AI·· 174 views· 3 min read

In short: with a voice model, you send a text and get back an audio file with that text spoken. Use it for the greeting on your phone line, the voice-over of a video or a short advert. It is done through the API, with the same request as images and videos, and paid in credits. See the AI video and voice page.

What it is for

Use Example
Phone line «Hello! Thank you for calling. How can we help you today?»
Video voice-over A product explanation, read over the pictures.
Advert A short line with this week's offer, for social media.
A page on your website A spoken version of an instruction, for people who prefer to listen.

The request

Pick a voice model on the «Models» tab, «Audio» filter, and copy its id with «Copy the id». The request goes to POST /v1/media/generations:

{"model": "elevenlabs/v3/text-to-speech", "input": {"text": "Hello! Thank you for calling. How can we help you today?"}}

Then, as with images, call GET /v1/media/generations/{id} until it is completed and download the file from outputs. Each model's other fields show with GET /v1/models/{id}.

Without writing code, the aio command does it in one line: aio generate audio "Welcome to our support line" --out welcome.mp3. In a coding agent set up with the MCP server, ask: «Read this text aloud and save the audio to audio/welcome.mp3: Thank you for contacting us.»

Writing a text to be heard

1 Short sentences, one idea at a time. A long paragraph read aloud tires the listener.
2 When in doubt, write numbers the way they are said: «twenty-four hours» instead of «24h».
3 Test how acronyms and your brand names come out. If needed, spell them the way they are pronounced.
4 Listen to the whole result before you use it. If a word comes out wrong, change the sentence and generate again.
Do not imitate a real person's voice without their written permission, and do not use a voice to pass yourself off as another person or company.
Test your program without spending: with a sandbox_ key, the generation completes straight away, with a sample link and 0 credits. See how to test in the Sandbox at no cost. Before you publish, also see what to check in an AI video or voice.

Want to hear what you can do with voice in All in One AI? See the AI video and voice page.

See AI video and voice

SEE ALSO

What an AI video or voice costs: credits per second, per generation and how to estimate

An AI video or voice is taking long or has failed: the statuses and what to do

Before you publish an AI video or voice: what to check

Creating a video with AI: from a description or from a photo, through the API

RECOMMENDED PRODUCT

Web hosting with cPanel

Domain and SSL included, daily backups and the panel you already know. from KSh858.00/mo (3-year plan, with coupon)

See plans
Was this answer helpful? Your answer helps us improve this article.