Lantun

Free text-to-speech widget · Open source · 38 kB

Turn any article into something people can listen to.

One script tag adds a small dock to your site. Readers press play and hear the article, with each sentence and word highlighted as it is spoken, plus reading aids for low vision, dyslexia and ADHD.

Then try a lifelike voice from the voice menu on the dock.

Brand colour
Dock side

Pick a colour and a side: the dock on this page and the code follow along. Every option is in the README.

What you are hearing

Everything here works on your site the moment the script loads.

Finds the story

Lantun found this text by itself. It skips menus, ads, captions, code and "read also" links.

Follows along

Each sentence and word lights up as it is spoken, and the page scrolls gently with it.

Starts anywhere

Hover a paragraph and press play beside it, or select a few words. It remembers where you stopped.

Lifelike voices

Natural voices made on the reader's device. No server, no cost per listen, nothing to download until chosen.

Reading aids

Larger text, more spacing, a dyslexia font, calmer colours and a reading guide, one tap away.

Safe on any site

It lives in its own shadow root, survives hostile CSS and strict security policies, and never breaks the page.

Questions

Is Lantun free?

Yes. It is open source under the MIT licence. The lifelike voices are made on each reader's device, so there is no API key, no account and no cost per listen.

Does it work with WordPress, Ghost, Webflow or Shopify?

Yes. Paste the two script lines into your theme's footer or custom code setting. Lantun finds the article on each page by itself. If it ever picks the wrong part, point it at your article with data-content-selector.

Will it slow my site down?

The widget is about 38 kB gzipped and starts after your page has loaded. The lifelike voices (about 31 MB) download only when a reader picks one, and then stay cached in their browser.

Which languages does it read?

Any language the reader's browser has a voice for. The lifelike voices speak English. The dock itself is in English or Indonesian, following the page language.

What about privacy?

Lantun has no server and collects nothing. The lifelike voices run entirely in the browser. Some browsers' own "online" voices are provided by the browser maker, as with any use of those voices.

Is the widget itself accessible?

It works fully by keyboard, speaks clearly to screen readers, respects reduced motion, and is checked with axe in every state.

Try it on real layouts

Sample articles that copy real blog and news-site layouts, ads and all. Lantun reads only the story.

English

    Bahasa Indonesia

      Stress test

        Read aloud

        Try it on any site. Drag this button to your bookmarks bar, open any article, and click it. Click again to reload.