What you will get
This is a quick tour of the Text to Speech page, so you can turn your own text into spoken audio. We’ll write one short line, hear it in a voice, adjust how it’s delivered, and then look at the same request as API code. The example is a parcel message, but you can swap in anything you like.
Write the text
Start in the box labelled Text to speak, and type in a short line: Your parcel arrives on Thursday between ten and twelve. This is the text the voice will read, word for word. The counter shows 55 / 5,000 characters. Text to speech is billed per character, and the rate card is at docs.lokutor.com.- In Text to speak, write: “Your parcel arrives on Thursday between ten and twelve.”
Choose a voice
Next is the voice, so I’ll open the list from the Claire button. The list holds ten voices, five female and five male, so you can try a few. Each name shows the voice’s gender, so I’ll pick Claire female.- Press Claire.
- Press Claire female.
Set the language
I’ll open the language list, which sets how the words are spoken. It covers English, several Spanish variants, Catalan, Galician, Basque, Portuguese and more. I’ll choose English, to match the sentence. If your language isn’t listed, the Missing a language link lets you request it.- Press English.
- Press English.
Generate and listen
Press Generate speech to turn the text into audio. Then press play to hear it. This player is where you check the words and the voice before changing anything else.- Press Generate speech.
Tune the delivery
The Delivery slider runs from steadier to livelier. Livelier makes the voice vary more from one sentence to the next, while steadier keeps it even. Pick steadier for messages that should always sound the same. The Pause setting is there for breaks in the speech.
Fix pronunciation
The pronunciation dictionary field is where you pick the word list the voice reads from. The options are Default only, plus the dictionaries already made, Médico and Calles y pueblos. Use one when a name or word comes out wrong, and the dictionaries you make under Pronunciation are used here too.
The same request as code
Now open Integration to see the same request as code. It carries the same voice, language and settings you chose here. The Integration Code section holds the request for the API. The tabs switch between cURL, Node.js and Python. If a window covers the tabs, press Escape to close it. Your API key goes in the authorization header, and the audio comes back as a file.- Press Integration.
- Press the Escape key.
Wrap up
So the loop is write, choose, listen, tune, and then reuse the same request in your own code. Keep an eye on the character count, since that is what the billing is based on.
Voice made with AI.
Read more: Text-to-Speech.