A free "Listen to this article" button for your website
One line of code puts a play button on your posts. Visitors press it and hear the article read aloud by their own browser. There is no account, no limit and no tracking, and it costs nothing to run.
Try it: the button above this heading reads this page. It works on phones and desktops in Chrome, Edge, Safari and Firefox.
Add it to your site
Paste this where your theme allows custom HTML, ideally just before </body>:
<script src="https://voice.glyphcall.com/listen.js" data-target="article" defer></script>
data-target is the part of the page to read, given as a CSS selector. Without it, the button reads <article>, then <main>. Menus, code blocks, figures and footers are skipped.
Options
data-target=".post-content": the element to read.
data-place="#listen-here": where the button goes. By default it goes just above the text.
data-lang="de-DE": the voice language. By default it follows the page's lang.
data-label="Artikel anhören": the button text.
data-rate="1.1": the speaking speed, from 0.5 to 2.
WordPress, Ghost, Webflow and others
- WordPress: add the line with a header and footer code plugin (site-wide). For one post, use a Custom HTML block.
- Ghost: Settings, Code injection, Site footer.
- Webflow: Project settings, Custom code, Footer code. Set
data-target to your rich text class.
- Squarespace and Wix: the footer code injection or an embed block.
- Plain HTML: before
</body>.
Questions
Is it really free? Yes. The visitor's own browser speaks the text with its built-in voices, so there is no server cost, no account and no limit on pages or visitors.
Does it track my visitors? No. The script sets no cookies, sends nothing anywhere and reads only the page it is on. The only outside request is the script file itself.
Which languages does it speak? Whatever voices the visitor's device has, which on phones and current desktops covers dozens of languages. It picks a voice for the page's lang attribute, or for data-lang if you set one.
Can I get one fixed, natural-sounding voice instead? Yes: make an MP3 of each post with the free text to speech tool or the text-to-speech API, and put it in an audio player. The button uses device voices, which differ between phones and computers.
The script is MIT-licensed and about 4 KB. Its source is readable at listen.js.