=== Leelo – Text to Speech & Listen to this Article ===
Contributors: leeloai
Tags: text to speech, tts, audio player, accessibility, listen
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.1.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Text to speech for your posts: a "listen to this article" audio player in a natural AI voice, for readers on the go and for accessibility.

== Description ==

Leelo turns your posts into natural-sounding audio and puts a small player at the top of each one, so readers can listen instead of read.

* **Automatic.** Publish a post and its audio is made in the background. Update it and the audio follows; a post saved without changes to its words costs nothing.
* **Your older posts too.** See what giving your published posts audio would cost before anything is spent, then let it run a few posts at a time.
* **1,700+ voices in 80+ languages**, from everyday voices to Ultra voices. Press Listen to hear one before you choose.
* **A player that fits your site.** Light or dark, your colour, the width of your article.
* **Coming from Play.ht?** Deactivate the Play.ht plugin, which no longer works. Posts that still contain `[playht_player]` or `[playht_listen_button]` then show the Leelo player in its place once they have audio.
* **Yours to keep.** Players already on your posts keep playing even if you stop your plan.

Website audio comes with a Leelo monthly plan (from $19 a month). Creating an account and connecting your site is free, and you can give one post audio free to hear it first.

== External services ==

This plugin relies on Leelo (https://leelo-ai.com), the service that makes the audio and plays it. Nothing is sent until you click "Connect to Leelo" and confirm on Leelo's site.

* **Making the audio:** when a post is published or updated, or when you ask for audio in the posts list or under Older posts, the plugin sends the post's title, headings and paragraphs, its address and the voice you chose to Leelo's API (api.leelo-ai.com).
* **Your account and the voices:** Settings → Leelo asks Leelo for your account's plan and credits and for the list of voices. Pressing Listen plays a short voice sample from media.leelo-ai.com.
* **The player:** posts with audio show a player embedded from leelo-ai.com, which plays the audio from Leelo's servers in your readers' browsers.
* **Updates:** the copy of this plugin downloaded from leelo-ai.com checks leelo-ai.com for new versions of itself.

Leelo's [Terms of Service](https://leelo-ai.com/terms) and [Privacy Policy](https://leelo-ai.com/privacy) apply.

== Installation ==

1. Install and activate the plugin. If the Play.ht plugin is still on, deactivate it: Leelo shows a button for it.
2. Go to **Settings → Leelo** and click **Connect to Leelo**. Sign in (or create an account) and confirm.
3. Choose a language and a voice (press **Listen** to hear it), and save.
4. Click **Hear one post free** to hear one of your posts, then choose a monthly plan: new posts get audio automatically from then on.
5. Optional: under **Older posts**, check the cost and give your published posts audio too.

== Frequently Asked Questions ==

= Where does the player appear? =

At the top of each post by default. You can move it to the end, or place it yourself with the `[leelo_player]` shortcode.

= What does it cost? =

Website audio is part of a Leelo monthly plan, and each post uses your plan's credits: about one credit per word with Core voices, three with Pro and Ultra voices. A post updated without changes to its words costs nothing, and the plugin shows the cost of your older posts before anything is made.

= I have a Leelo lifetime deal. Can I use it? =

Yes, to hear it: your lifetime credits can give one post audio free. After that, website audio comes with a monthly plan, and your lifetime credits stay for the Leelo Studio.

= What happens if I stop paying or disconnect? =

Players already on your posts keep playing. New posts don't get audio until you have a plan again.

= I used Play.ht. Do I need to edit my posts? =

No. Deactivate the Play.ht plugin (it was closed on WordPress.org in March 2024 and its player no longer plays), and leave the old `[playht_player]` shortcodes where they are: once a post has its Leelo audio, the player appears in the same place.

= A post has audio but I don't see the player. =

Your site may be showing a cached copy of the page. Leelo clears it for WP Rocket, LiteSpeed Cache, W3 Total Cache, WP Super Cache, WP Fastest Cache, SiteGround, WP-Optimize, Hummingbird, Cache Enabler, Nginx Helper and WP Engine as soon as the audio is ready. With another cache, or a CDN such as Cloudflare, clear it once and the player appears.

= Which voices can I use? =

Leelo's Core, Pro and Ultra voices. Studio voices and your own cloned voices aren't available for websites.

== Changelog ==

= 1.1.1 =
* Press Listen to hear a voice before you choose it.
* Every voice for your language is listed (some were missing), your language's own voices first, and voices with the same name are told apart.
* An account with a lifetime deal can give one post audio free from its lifetime credits. When there's nothing to pay for the free post with, Settings → Leelo says so.
* Updates no longer say "Not tested" on a WordPress release the plugin was tested with (7.1.5, for example).

= 1.1.0 =
* Updates now arrive in WordPress like any other plugin's (Dashboard → Updates, or automatically).
* When a post's audio is ready, its cached page is cleared so the player shows at once.
* If the Play.ht plugin is still on, Leelo says so and offers to deactivate it: its player no longer plays and would show instead of Leelo's.
* Requires WordPress 5.8 or later.

= 1.0.0 =
* First release.
