=== WebtoSpeech – Text to Speech Audio Player ===
Contributors: nbedd2
Tags: text to speech, audio, tts, accessibility, podcast
Tested up to: 7.1
Stable tag: 1.0.1
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Text to speech for your posts. Adds an audio player that reads each article aloud in a natural voice, with no theme editing.

== Description ==

WebtoSpeech turns your posts into audio. Readers press play on a player at the top of a post and hear it read aloud in a natural voice, like a podcast.

This plugin connects your site to [WebtoSpeech](https://webtospeech.app/publishers), a hosted text-to-speech service. It needs a WebtoSpeech account with a Publisher subscription; see "External services" below for what that means for your site.

* **No theme editing.** Enter your site key and every post gets a player, above or below the content.
* **Audio is made when someone listens.** Nothing is generated until a reader presses play, so crawlers and link previews don't use up your minutes.
* **Edits stay in sync.** When you update a post, its audio is read again the next time someone plays it.
* **Choose where it appears.** Pick which post types get a player, place it by hand with the WebtoSpeech Player block or the `[webtospeech]` shortcode, or turn it off for a single post.
* **Light, dark or automatic** to match your theme or the reader's system.
* **No cookies.** The player sets no cookies and starts no session, so it doesn't need a cookie banner.
* **Verify without DNS.** Paste your verification token and the plugin adds the verification meta tag to your home page for you.

You choose your site's voice on webtospeech.app.

== External services ==

This plugin relies on WebtoSpeech (https://webtospeech.app), a third-party text-to-speech service run by the plugin's author. The player and the audio come from that service. Without it the plugin does nothing.

**When it connects:** only once you have saved a site key on Settings → WebtoSpeech. Until then the plugin adds nothing to your pages and makes no requests. Your WordPress server never contacts WebtoSpeech; the connections are made by your visitors' browsers.

**What is loaded:** on each page that shows a player, the visitor's browser loads the script `https://webtospeech.app/embed.js`, which then loads the player in an iframe from `https://webtospeech.app/embed/sites/…`. When the reader presses play, the player asks WebtoSpeech for the audio, and WebtoSpeech generates it if it doesn't have it yet.

**What is sent, and when:** when a page with a player loads, the browser sends WebtoSpeech your site key and the post's address (URL), title and last-updated date. WebtoSpeech fetches the post from that address to read it aloud. As with any web request, WebtoSpeech also receives the visitor's IP address and browser user agent. The player sets no cookies and does not identify visitors. WebtoSpeech counts how many times each post's audio is played.

**Home page verification:** if you enter a verification token, the plugin adds `<meta name="webtospeech-verification" content="…">` to your home page. WebtoSpeech fetches your home page to check it when you verify the site, and now and then afterwards.

WebtoSpeech's [Terms of Service](https://webtospeech.app/terms) and [Privacy Policy](https://webtospeech.app/privacy) apply. The plugin suggests text for your own privacy policy under Settings → Privacy → Policy Guide.

== Installation ==

1. Install and activate the plugin from Plugins → Add New, or upload the `webtospeech` folder to `/wp-content/plugins/`.
2. [Sign up for WebtoSpeech](https://webtospeech.app/publishers) with a Publisher subscription.
3. On webtospeech.app, go to Settings → Sites and add your site's domain.
4. In WordPress, go to Settings → WebtoSpeech, paste the verification token and save. Then press Verify on webtospeech.app. (If you'd rather verify with a DNS TXT record, skip this step and leave the token empty.)
5. Paste your site key (it starts with `ws_`) into Settings → WebtoSpeech and save.
6. Open any post. The player appears above the content.

== Frequently Asked Questions ==

= Do I need a WebtoSpeech account? =

Yes. The audio is made and hosted by WebtoSpeech, and embedding the player on your own site needs a Publisher subscription. You can sign up at https://webtospeech.app/publishers.

= The player doesn't appear. What should I check? =

* A site key is saved on Settings → WebtoSpeech.
* You're viewing a single post (not the home page or an archive) of a post type that's ticked in the settings.
* "Disable the audio player on this post" isn't ticked in the post's WebtoSpeech box.
* The post isn't password protected.
* Your site is verified on webtospeech.app, and its domain matches your WordPress address. If it isn't, the player says audio isn't available.

= Can I place the player somewhere else in the post? =

Yes. Add the WebtoSpeech Player block, or the `[webtospeech]` shortcode, where you want it. A post that has either one doesn't get a second player automatically. The shortcode takes an optional theme: `[webtospeech theme="dark"]`.

= Can I turn the player off for one post? =

Yes. Tick "Disable the audio player on this post" in the WebtoSpeech box on the post's edit screen.

= Will it slow my site down? =

The script is small, loads asynchronously, and is only added to pages that show a player. The player loads lazily as it scrolls into view.

= When is the audio made? Does it use my minutes when Google visits? =

Audio is generated only when a reader presses play, never when a page is viewed. Crawlers, previews and prefetching don't use your minutes.

= What happens when I edit a post? =

The plugin tells the player when the post was last modified. The next time someone presses play, WebtoSpeech reads the new version.

= Which languages and voices are available? =

You choose your site's voice on webtospeech.app, under Settings → Sites.

= Does the player set cookies or track visitors? =

No. The player sets no cookies and starts no session. WebtoSpeech counts plays per post but does not identify visitors. See "External services" for what is sent.

= Does it work with page caching plugins? =

Yes. The player is plain HTML in your post and a script tag, so cached pages work as normal.

== Screenshots ==

1. The player above a post.
2. The settings page, under Settings → WebtoSpeech.
3. The WebtoSpeech Player block in the editor.

== Changelog ==

= 1.0.1 =
* The plugin is now called "WebtoSpeech – Text to Speech Audio Player". Nothing else changed.

= 1.0.0 =
* First release: automatic player on chosen post types, position and theme settings, home page verification, the `[webtospeech]` shortcode, the WebtoSpeech Player block, and a per-post switch to turn the player off.

== Upgrade Notice ==

= 1.0.1 =
New name only. No changes to how the plugin works.

= 1.0.0 =
First release.
