> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lokutor.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Try the voices - text to speech

> A quick tour of the Text to Speech page: write a line, pick a voice and language, listen, tune delivery and pronunciation, and see the same request as API code.

A narrated video (2:45), filmed on the real dashboard in a demo workspace, then the same steps in writing.

<video controls playsInline preload="metadata" poster="https://lokutor-media-eu-west-1.s3.eu-west-1.amazonaws.com/tutorials/text-to-speech/en/poster.jpg">
  <source src="https://lokutor-media-eu-west-1.s3.eu-west-1.amazonaws.com/tutorials/text-to-speech/en/video.mp4" type="video/mp4" />
</video>

## 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.

![What you will get](https://lokutor-media-eu-west-1.s3.eu-west-1.amazonaws.com/tutorials/text-to-speech/en/images/intro.webp)

## 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.

1. In **Text to speak**, write: “Your parcel arrives on Thursday between ten and twelve.”

![Write the text](https://lokutor-media-eu-west-1.s3.eu-west-1.amazonaws.com/tutorials/text-to-speech/en/images/write-text.webp)

## 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.

1. Press **Claire**.
2. Press **Claire female**.

![Choose a voice](https://lokutor-media-eu-west-1.s3.eu-west-1.amazonaws.com/tutorials/text-to-speech/en/images/pick-voice.webp)

## 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.

1. Press **English**.
2. Press **English**.

![Set the language](https://lokutor-media-eu-west-1.s3.eu-west-1.amazonaws.com/tutorials/text-to-speech/en/images/pick-language.webp)

## 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.

1. Press **Generate speech**.

![Generate and listen](https://lokutor-media-eu-west-1.s3.eu-west-1.amazonaws.com/tutorials/text-to-speech/en/images/listen.webp)

## 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.

![Tune the delivery](https://lokutor-media-eu-west-1.s3.eu-west-1.amazonaws.com/tutorials/text-to-speech/en/images/delivery.webp)

## 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.

![Fix pronunciation](https://lokutor-media-eu-west-1.s3.eu-west-1.amazonaws.com/tutorials/text-to-speech/en/images/pronunciation.webp)

## 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.

1. Press **Integration**.
2. Press the **Escape** key.

![The same request as code](https://lokutor-media-eu-west-1.s3.eu-west-1.amazonaws.com/tutorials/text-to-speech/en/images/api-code.webp)

## 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.

![Wrap up](https://lokutor-media-eu-west-1.s3.eu-west-1.amazonaws.com/tutorials/text-to-speech/en/images/wrap-up.webp)

*Voice made with AI.*

Read more: [Text-to-Speech](https://docs.lokutor.com/sdk/tts.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.