How Amazon Polly Can Be Used to Create Spoken Versions of Your Posts

Last Updated on May 29, 2023 by 13 Comments

Editorial Note: We may earn a commission when you visit links on our website.
How Amazon Polly Can Be Used to Create Spoken Versions of Your Posts
Blog / Tips & Tricks / How Amazon Polly Can Be Used to Create Spoken Versions of Your Posts
Play Button

In a nutshell, text-to-speech technology is a powerful way to enable people to experience the web who otherwise couldn’t. As the technology has evolved, it works quite admirably – although it hasn’t gotten to the point where it sounds as natural as if someone were reading aloud to you.

That’s where Amazon’s Polly project comes in, which aims to get as close as possible to lifelike speech. In this article, we’re going to talk about the current state of text-to-speech software and introduce you to the Amazon Polly project. Then we’ll talk about our impressions on how Amazon Polly and WordPress play together. Let’s get talking!

What Text-to-Speech Software Is (And When It Makes Sense to Use It)

The concept of text-to-speech software is simple – you take a paragraph, a page, an article, or even a whole book and have a computer read it aloud to you. When people think about text-to-speech, they often associate it with robotic voices and stilted cadences. However, this usually isn’t the case anymore, particularly with modern software.

To some people, text-to-speech may sound like a gimmick, but it’s a technology with very practical applications, such as:

  • Enabling people with disabilities to ‘read’. The most obvious use of text-to-speech software is to enable people with visual impairments to consume written content.
  • It provides a hands-off reading experience. Even if your eyesight is perfect, sometimes it’s more comfortable or convenient to listen to something instead of reading it.
  • For situations where audio versions of content aren’t available. These days, most popular books are also released in audio format. However, the same doesn’t hold true for most other written content, including articles, poems, and more. Text-to-speech software enables you to listen to any written content you want as long (as the functionality is built-in).

From a technical perspective, getting text-to-speech right is much more difficult than you might imagine. Recording human speech and reproducing is only the beginning, which brings us to the next section.

The Current State of Text-to-Speech Software

If you remember what text-to-speech software sounded like even a few years ago, you may not look on the technology fondly. However, this type of software has come a long way during the past few years. Here’s a quick example of Amazon Kindle’s text-to-speech functionality in action, reading Pride and Prejudice:

You’ll notice the video showcases several voices, some of which sound better than you’d imagine. Admittedly, they’re all a bit stilted, but the Englishman’s rendition in particular is quite enjoyable to hear. The difference between what a human would sound like reading the text is noticeable. However, it’s not out of the question for someone to work through an entire book using text-to-speech and still enjoy it. Plus, your computer narrator will never tire or slur their words, which gives it an edge over humans.

Naturally, there is plenty of other software offering decent text-to-speech capabilities, such as Natural Reader. This program enables you to open and edit your documents, as well as paste content and have it read aloud to you in over 50 different voices. Here’s a quick introduction video using some of the voices featured by the software:

The difference in quality between Natural Reader and Amazon is obvious. Speech sounds much more mechanical and the pauses between words are more noticeable. However, increasing the speed of the reader does a decent job of masking these issues.

To sum it up, there’s still a lot of variation in quality when it comes to text-to-speech software. In a few years, the technology will probably leap forward massively thanks to machine learning applications. At that stage, it might no longer become so easy to discern when you’re listening to a machine read aloud to you, or a real human being.

An Introduction to Amazon Polly

The Amazon Polly homepage.

Amazon Polly is a cloud service that enables you to turn text into speech in over 20 languages, using over 40 unique voices. The service has been around since 2016 but it was in 2018 that Amazon launched a plugin to help WordPress users integrate it into their websites.

The plugin itself was the product of a joint effort between Amazon and WP Engine. It works on both websites powered with Amazon Web Services (AWS) and those running on independent web hosts. In either case, you can use Polly to generate audio for your written content and enable users to reproduce it. Plus, it enables you to store the audio versions of your posts on your own server or using Amazon’s Simple Storage Service (S3) at a cost.

On this page, you can find several examples of Amazon Polly speech in different languages:

A screenshot of Amazon Polly's homepage.

The examples are quite short, but the English voices in particular are quite decent. It’s about on par with the experience of converting text on your Kindle to speech, which is to be expected considering it likely uses the same technology.

As far as costs go, you’ll need an AWS account to use Polly. However, the service supports up to five million characters per month for free, for up to 12 months. Just to give you an idea, there are seven to eight characters on average for each English word. That works out to over 600,000 words per month for free using Amazon Polly, which is about six times the length of a long-winded novel.

Key Features:

  • Generate speech for your text in over 20 languages.
  • Choose from over 40 voices for your text.
  • Turn on text-to-speech by default for all of your WordPress content.
  • Generate a player for the audio versions of your posts and control its placement.
  • Store your audio files on your server or using Amazon S3.
  • Convert up to five million characters to audio for free per month.

Price: Free and premium tiers available | More Information

Our Experience Using the Amazon Polly Plugin

Installing Amazon Polly on WordPress is remarkably simple. After activating the plugin, simply connect it to your AWS account using an access and secret key:

Adding your AWS access and secret keys to WordPress.

Once you link the plugin to your AWS account, you can configure which voice it should use by default. Other settings include the playback rate, which controls the speed of the text-to-speech sound, and the position of the player Amazon Polly uses to reproduce it:

Configuring your Amazon Polly plugin.

There’s even an autoplay option for your Amazon Polly audio files, which we encourage you to keep turned off for the sake of your user’s experience. You can also configure where Amazon Polly will store the audio files for your posts, including the option to save it to your S3 account. If you use Amazon CloudFront, you can also use to distribute your audio to lessen the impact on your servers:

Configuring where the Amazon Polly plugin stores its audio output.

One feature that surprised us was the ability to generate a podcast feed using Amazon Polly, which you can link to an iTunes account. Personally, we don’t think the text-to-speech quality is quite there yet for a high-quality podcast. However, including this option is a step in the right direction:

Configuring the plugin's podcasting capabilities.

If you enable Amazon Polly, it will add an audio player to each of your posts. However, you can turn off text-to-speech functionality for posts on a case-by-case basis. Just edit them, and look for the Enable Amazon Polly metabox within:

The Amazon Polly widget.

This widget also enables you to preview how much it’d cost to generate speech for each particular post, which is a nice touch. Now, when visitors access your posts, they’ll be able to click on Amazon Polly’s audio player, sit back, and listen to them leisurely. Overall, the experience of integrating the service with WordPress is remarkably simple thanks to this plugin.

Conclusion

Lifelike voices are the holy grail of text-to-speech software. The problem is, emulating what a real person sounds like is complicated when you have near infinite combinations of words. Even so, text-to-speech software continues to improve, and Amazon Polly offers you a great way to add this feature to your websites and applications.

As far as to how it sounds, Amazon Polly delivers a good text-to-speech experience. Its dedicated WordPress integration is easy to set up, and it’ll cost you very little indeed thanks to AWS’s competitive pricing.

Do you have any questions about adding text-to-speech functionality to your website? Ask away in the comments section below!

Article image thumbnail by vectorEps / shutterstock.com.

Divi

Want To Build Better WordPress Websites? Start Here! 👇

Take the first step towards a better website.

Get Started
Divi
Premade Layouts

Check Out These Related Posts

Splice Video Editor: An Overview and Review

Splice Video Editor: An Overview and Review

Updated on March 10, 2023 in Tips & Tricks

Video is a valuable form of content for social media. Unfortunately, creating quality videos is usually a long process that involves moving mobile footage to a desktop app for editing. However, mobile editing is on the rise. Apps such as Splice Video Editor make it possible to efficiently create...

View Full Post
How to Use Font Awesome On Your WordPress Website

How to Use Font Awesome On Your WordPress Website

Updated on September 16, 2022 in Tips & Tricks

When given the choice between using a vector icon or a static image, it’s a good idea to go with the vector. They’re small and fast to load, and they can scale to any size without a loss of resolution. Font Awesome is a superb library of vector icons that you can use on your websites,...

View Full Post

13 Comments

  1. This plugin has been discontinued for a while.

  2. I used Polly on my Divi site on March 23. The first thing that happened was a notice of 5 errors. Then I went ahead and viewed the page…and it worked in spite of the errors. Next, I attempted to use the Mark-up code to refine the speech via the ‘text’ tab. That had no effect, and I assumed one can only use that feature if you have a website on Amazon’s platform. After experimenting with Polly for only a few hours, I got a notice from Amazon that I had used up 85% of my free allotment. I had to go through quite a few gymnastic moves just to join AWS to be eligible to use Polly, so actually having to pay more for Polly was not to my liking. I only use Divi for personal sites, so I may be missing something. The ‘idea’ of Polly is very enticing. I think it will have to be modified for easier and more reliable use within Divi before I consider it again, for instance, adding the ability to use it on Pages as well as Posts. Meanwhile, if I need audio, I’ll just record my own voice and use MP3s. I’m very glad you published this article. Without it, I wouldn’t have explored Polly. It is definitely something I will keep my eye on.

  3. Hi guys from Elegant themes.
    Amazon Polly doesn’t work with Divi theme if the Divi Builder is activated.
    Please note and advise!

  4. I just read the same thing that Mitch did about the 1500 characters limit and have put in a support ticket to the WordPress Plugin developers about that to see what they say as they are showing it used for Blog Post.

    PS. both me and my parrot Honey love Mitch’s site.

  5. that is incorrect Polly only allows 1500 characters so blog posts are out of the question – I looked at Polly in my Amazon dash before I looking at the plugin

  6. I was going to try this, as it seems very interesting, although not really necessary (another “cool toy”). I particularly like the idea of automating blog-to-podcast even if the quality were not necessarily ideal. However, it seems as though this simply doesn’t work with Divi based on the comments of the previous posters (which I really appreciate). And if it doesn’t work with Divi, it’s kind of defeating the whole point? On the plus side, I think the article inadvertently revealed the concept of repurposing blog posts for podcasts, which is good.

  7. Welsh text to Welsh spoken was very good! Pretty much on the money! However, there are of course slightly different versions of Welsh so Amazon need a South/North Wales version.

    Thanks!

  8. Does it work with custom posts?

  9. Definitely doesn’t work with Divi! Has the writer of this article checked the Divi theme compatibility?
    The polly translator reads the code, not the text! So if you only use Divi (like me :-)) don’t bother.

    • Thank you for your comment! I built a website for persons with disabilities and this would have been a great tool. However, you’ve saved me time and some level of frustration because my site is 100% divi and from your comment, pollly won’t work on our site.

  10. I uploaded a while back and found it to be in conflict with Theme, so I deactivated. I am using Divi Theme.
    Has anyone had a problem?

    • Yes, the same happened to me. It made my site crash.

  11. Your vimeo video has privacy issues.

Leave A Reply

Comments are reviewed and must adhere to our comments policy.

Get Started With Divi