How to Add Text-to-Speech to WordPress
Adding text-to-speech to WordPress can be very simple, but the quality of the result depends on how the integration is implemented. A basic solution can place an audio player into an article, while a more complete setup should also handle content extraction, audio generation, caching, hosting, playback and updates to the original post.
For WordPress publishers, the easiest way to add article audio is to use a dedicated plugin that connects WordPress to a text-to-speech platform. This removes the need to edit theme files manually and makes it possible to control where the player appears directly from the WordPress administration.
In this guide, we will explain how to add text-to-speech to WordPress, how the Readivo WordPress plugin works, what happens when an article is published or updated, and when it may make sense to use a manual integration instead.
What does text-to-speech in WordPress actually mean?
Text-to-speech in WordPress usually means that the content of a post or page is converted into spoken audio and made available through a player embedded directly in the page.
The simplest possible workflow looks like this:
- A post or page is published in WordPress.
- An audio player is displayed in the content.
- The article text is extracted from the page.
- The text is sent to a text-to-speech engine.
- The generated audio is stored and reused for future listeners.
- The visitor can listen to the article without leaving the page.
The main advantage is that publishers do not need to record every article manually. Once the integration is configured, the same process can be used across dozens, hundreds or thousands of posts.
The easiest way to add text-to-speech to WordPress
The most practical approach for most WordPress websites is to use a plugin that inserts the player and handles the connection to the text-to-speech service automatically.
The Readivo WordPress plugin is available directly from WordPress.org and is designed specifically for adding audio versions of posts and pages.
After installation, the plugin requires a Readivo Site ID, which can be obtained from the Readivo administration. Once the Site ID is entered, the plugin can render the same Readivo player that is used on non-WordPress websites, but without requiring the publisher to manually add the player HTML and JavaScript loader to the theme.
The plugin itself is free. Audio generation and playback are handled by the Readivo service according to the credits and plan associated with the Readivo account.
How to install the Readivo WordPress plugin
The installation process is similar to any other plugin available from the official WordPress repository.
- Open the WordPress administration.
- Go to Plugins → Add New.
- Search for Readivo.
- Install and activate the plugin.
- Open Settings → Readivo.
- Enter the Site ID from your Readivo account.
Once the Site ID has been saved, the plugin can begin inserting the Readivo player according to the configured rules.
The plugin requires WordPress 6.0 or newer and PHP 7.4 or newer. It is tested with current WordPress versions and works with standard WordPress themes.
Automatically insert the player into WordPress posts
One of the main reasons to use the plugin instead of a manual theme integration is automatic player insertion.
In the Readivo plugin settings, the publisher can enable automatic insertion and choose whether the player should appear at the top or bottom of the article.
The plugin can be enabled for:
- posts,
- pages,
- or both.
It is also possible to limit automatic insertion to content published after a selected date. This is useful when a website has a large historical archive and the publisher does not want to immediately display the player on every older article.
For example, a publisher could decide that only posts published after January 1, 2026 should receive the player automatically, while older content remains unchanged.
Control the player for individual posts
Global settings are useful for most content, but publishers often need exceptions. A particular article may not be suitable for text-to-speech, or the editor may want to force the player to appear even when automatic insertion is disabled globally.
The Readivo plugin therefore adds a dedicated Readivo panel to the WordPress editor.
For each post, the editor can choose one of three visibility modes:
- Automatically – follow the global plugin settings,
- Show player – force the player to appear for this post,
- Hide player – prevent the player from appearing on this post.
This makes it possible to use one global configuration for most of the website while still keeping control over individual articles.
Place the player manually with a shortcode
Automatic insertion is not the only option. The plugin also provides the shortcode:
[readivo]
The shortcode can be placed anywhere inside a post or page, which is useful when the player should appear at a specific position rather than automatically at the top or bottom.
The shortcode can also include optional settings such as a Play ID or custom player text.
If the shortcode is used, the plugin does not add a second automatically inserted player to the same post.
Use the Readivo Player block in Gutenberg
For websites using the Gutenberg block editor, the plugin also provides a dedicated Readivo Player block.
The block can be inserted anywhere in the article, just like an image, paragraph or other Gutenberg block.
This gives editors precise control over the location of the player without requiring them to work with shortcodes or HTML.
The Gutenberg block supports optional settings including:
- Play ID for assigning a specific audio file,
- Default text for customizing the player text.
If the Gutenberg block is present, automatic insertion is disabled for that post to prevent duplicate players.
How Readivo prevents duplicate players
A WordPress site may use several different insertion methods, so the plugin includes priority logic to make sure only one player appears on a post.
The priority is:
- Gutenberg block,
- shortcode,
- automatic insertion.
This means that if an editor manually inserts the player using a Gutenberg block, the plugin will not also add another copy automatically.
The same applies to the shortcode. Manual placement takes precedence over automatic placement.
What happens when a visitor presses Play?
The WordPress plugin is primarily responsible for placing the player on the page and supplying the correct Readivo configuration. The audio generation process itself works in the same way as on a non-WordPress website.
When the visitor starts playback and the article does not already have generated audio, Readivo can retrieve the article content, prepare it for text-to-speech and generate the audio.
The player does not need to send article content to Readivo every time the page is opened. According to the plugin integration, data is sent when audio generation is required, rather than simply because a visitor loaded the page.
The data involved in generation may include:
- the page title,
- the page URL,
- a stable identifier based on the WordPress post ID,
- and, depending on the configured extraction method, the article text itself.
Once generated, the audio is cached and reused instead of being generated again for every visitor.
How does Readivo get the article text from WordPress?
The WordPress plugin does not use a completely separate text extraction system. It relies on the same Readivo extraction methods available for other websites.
The exact method depends on the configuration in the Readivo administration.
Server-side extraction
With server-side extraction, Readivo accesses the article URL and retrieves the content from the rendered page.
The publisher can define selectors for the main content element and exclude elements that should not be narrated, such as related posts, advertisements or sharing buttons.
This is often a good choice for standard WordPress websites because the article is publicly available through a normal URL and can be processed without sending the entire text directly from the visitor's browser.
Client-side extraction
Client-side extraction is available when the article content needs to be obtained directly in the browser.
In this mode, JavaScript selects the relevant content from the page and sends it to the Readivo API when audio needs to be generated.
This can be useful for websites where server-side extraction is restricted or where content is dynamically rendered.
What happens when a WordPress article is edited?
Articles are frequently updated after publication, so the audio workflow needs to account for content changes.
The Readivo WordPress plugin can work either with a stable custom identifier based on the WordPress post ID or without a fixed custom ID, depending on the selected configuration.
When a stable identifier is used, the publisher can decide whether the audio should remain associated with that version of the post. When content-based generation is used instead, Readivo can detect that the article text changed and generate a new audio version when required.
The plugin also includes a setting for controlling whether audio should be regenerated when article content changes.
This allows publishers to choose the behavior that best matches their editorial workflow instead of forcing every WordPress site into the same versioning model.
Can audio be generated before the first visitor clicks Play?
Yes. The WordPress plugin does not change the core generation model used by Readivo, so publishers can still use automatic pre-generation based on an RSS feed.
When RSS monitoring is enabled in Readivo, the system checks the feed periodically and can generate audio for newly published articles before anyone clicks the player.
This is particularly useful for news websites and magazines because the first visitor does not need to wait for the TTS generation process.
Publishers that do not need pre-generation can use on-demand generation instead, where audio is created only when somebody actually tries to listen.
Choose between automatic and on-demand generation
Both approaches can work well in WordPress, but they are suited to different publishing models.
On-demand generation is efficient when the site has a large archive or many posts that receive little traffic, because audio is created only for articles that somebody actually listens to.
Automatic generation through RSS is useful for new content that is expected to receive traffic soon after publication, because the audio can already be prepared by the time the first listener arrives.
A publisher can therefore use Readivo as a lightweight on-demand system or as part of a more automated publishing workflow.
Can you use your own MP3 files instead of text-to-speech?
Yes. The Readivo WordPress plugin is not limited to AI-generated narration.
A publisher can upload an existing audio file to Readivo and assign it to a post using a Play ID.
This is useful when a particular article already has a professionally recorded narration or another audio version that should be played instead of generating new speech.
The Play ID can be assigned directly in the WordPress editor or through the Readivo Player block.
How is the player styled?
The WordPress plugin uses the same Readivo player as the standard website integration, so publishers do not need to manage a separate WordPress-specific design.
Player appearance and behavior are configured through the Readivo administration and can be customized to match the website.
The player is responsive, supports mobile and desktop layouts, and can be styled using CSS.
Individual parts of the interface can also be enabled or disabled according to the publisher's needs.
This makes it possible to use the same player design across WordPress and non-WordPress websites managed under the same publishing environment.
Can visitors change the playback speed?
Yes. Although the generated audio itself is created at its configured voice speed, the listener can change playback speed directly in the Readivo player.
This is especially useful for long-form content because some users prefer to listen more quickly than the default narration speed.
Which text-to-speech voices are available?
Readivo provides access to multiple text-to-speech providers, including Microsoft Azure, Google and Kokoro.
The platform currently offers 821 voices across 81 languages and regional language variants.
The default voice is configured for the website or player in the Readivo administration, while developers can also override the selected voice for specific integrations when needed.
This is useful for multilingual WordPress websites or publishers that operate multiple sections with different voice requirements.
Audio hosting is handled automatically
Generating an MP3 file is only one part of adding text-to-speech to WordPress. Someone still needs to store and deliver that audio efficiently.
With Readivo, the publisher does not need to upload generated files into the WordPress Media Library or store them on the WordPress hosting account.
Generated audio is stored separately and distributed through a CDN, which means the WordPress server does not need to handle the audio delivery itself.
This is useful for websites hosted on standard shared or managed WordPress hosting, where serving large numbers of audio files directly from the origin server could otherwise increase bandwidth usage and server load.
Does adding Readivo modify WordPress post content?
No. The plugin renders the player dynamically on the frontend and does not permanently modify the stored post content in the WordPress database.
This matters because publishers can enable or disable the integration without rewriting every article or leaving unnecessary player markup inside existing posts.
The same applies to automatic insertion. The player is added at render time according to the plugin settings rather than being physically written into the article content.
Manual WordPress integration without the plugin
Developers can also add Readivo to WordPress manually without installing the plugin.
The standard Readivo integration requires an asynchronous JavaScript loader:
<script async src="https://cdn.readivo.app/dist/loader.js"></script>
and the player element:
<readivo-player data-readivo-site="YOUR_SITE_ID"></readivo-player>
These can be added directly to a WordPress theme or template.
A developer could, for example, place the script in the theme footer and render the player inside the single post template.
This approach provides complete control over integration but also means that the developer must manage placement and WordPress-specific display conditions manually.
For most WordPress websites, the plugin is therefore the easier option, while direct integration remains useful for custom themes or more unusual implementations.
WordPress plugin or manual integration?
The choice mainly depends on how much control you need and whether you want to maintain custom WordPress code.
| Feature | Readivo WordPress Plugin | Manual Integration |
|---|---|---|
| Installation | Install from WordPress.org | Edit theme or template |
| Automatic placement | Yes | Must be implemented manually |
| Gutenberg block | Yes | No |
| Shortcode | Yes | Custom implementation required |
| Per-post visibility | Built in | Custom logic required |
| Theme development required | No | Usually yes |
If the goal is simply to add text-to-speech to standard WordPress posts, the plugin is usually the quickest option. Manual integration makes more sense when the website uses a highly customized theme or when the developer wants direct control over the HTML output.
What about audio analytics?
Once audio is available, publishers should also be able to see whether visitors actually use it.
Readivo tracks audio-specific metrics including the number of plays, number of listeners, total listening time, percentage listened, retention, device type, voice performance and listening activity by hour and day of the week.
This gives publishers information that normal WordPress pageview analytics cannot provide.
A pageview can tell you that somebody opened an article, while audio analytics can show whether the visitor started listening and how much of the narration they consumed.
Can WordPress audio articles include advertising?
Readivo also supports audio advertising, including direct MP3 pre-roll ads and external VAST tags.
This makes it possible for publishers to monetize article listening in addition to the display advertising already present on the website.
The advertising configuration is part of the Readivo player rather than a separate WordPress advertising system, so the same setup can be used regardless of whether the player was inserted by the plugin or manually.
How much development work is required?
With the WordPress plugin, very little development work is required for a standard installation.
The basic workflow is:
- Create a Readivo account.
- Add the website in the Readivo administration.
- Copy the Site ID.
- Install the Readivo plugin from WordPress.org.
- Paste the Site ID into the plugin settings.
- Choose where the player should appear.
After that, the player can be displayed automatically across posts and pages according to the selected configuration.
The publisher can then adjust voice settings, player appearance, content extraction and other behavior in the Readivo administration without rebuilding the WordPress integration.
Is a WordPress TTS plugin better than using a raw TTS API?
A raw TTS API gives developers direct access to speech generation, but it does not automatically solve the rest of the publishing workflow.
If you integrate a provider such as Azure or Google directly, you still need to build logic for article extraction, caching, file storage, versioning, player rendering, analytics and potentially advertising.
A WordPress plugin connected to a complete article-to-audio platform removes most of that integration work.
The difference is therefore not just between two ways of generating speech. It is the difference between using a speech engine and using a complete publishing workflow.
We cover this distinction in more detail in Article-to-Audio Platforms vs. Traditional TTS APIs.
Who should use text-to-speech on WordPress?
Text-to-speech is especially useful for WordPress websites that publish substantial amounts of written content.
Typical examples include:
- online magazines,
- news websites,
- company blogs,
- regional publishers,
- educational websites,
- long-form blogs,
- and content-heavy niche websites.
The more frequently a website publishes, the more useful automation becomes because editors do not need to add narration as a separate production task for every article.
How to get started
If you want to add text-to-speech to WordPress without building your own audio infrastructure, the Readivo plugin provides the simplest integration path.
The plugin is free to install, and Readivo registration is also free. New accounts currently receive 100,000 credits during the first month, followed by 15,000 free credits each month under the Free plan.
This makes it possible to test the player on real WordPress posts before deciding whether to deploy audio across the entire website.
Want to add audio versions to your WordPress articles?
Install the Readivo WordPress plugin, connect your Site ID and choose where the player should appear.
Install the Readivo WordPress plugin | Create a free Readivo account