INHOUDSOPGAVE
![](https://cdn.prod.website-files.com/5c2a9a234fdbba7439c48fa4/656600ac15e8fb306ae8447f_TQW0N2GV8-U064G7QV42G-g1e8a2ba916b-512.webp)
Ovidiu
This post will teach you How to Easily add a Text-to-speech Button to your Webflow Site feature in webflow and when/why you might want to Easily add a Text-to-speech Button to your Webflow Site in your project.
How to Easily add a Text-to-speech Button to your Webflow Site (FREE)
Memberscripts needed
https://www.memberstack.com/scripts/86-free-simple-text-to-speech
Tutorial
Cloneable
![](https://cdn.prod.website-files.com/5c2a9a234fdbba7439c48fa4/65f1ad0f8122f96e91124193_Screenshot%202024-03-13%20at%2014.41.15.webp)
Why/When would need to add a Text-to-speech Button to your Webflow Site?
- Improve accessibility for users who may be visually impaired.
Accessibility is extremely important when building a website and one way to offer a more accessible experience to your users is by providing text-to-speech functionality for those who may have a difficult time reading.
This guide will help you implement a button that uses visitors’ devices’ built-in TTS functionality to read the content on your site. That means that it’s really easy to implement and you don’t have to spend any money on it.
Adding a text-to-speech button to a Webflow site
To add a text-to-speech button to a Webflow site, we’re going to use MemberScript #86 – Free & Simple Text-to-Speech. Follow the link to get the code you’ll need to add to your page and watch a video tutorial on how to set everything up.
Setting it up
The first thing you’ll need to do is create a button and style it however you want. Then select that button and add the following attribute to it:
- ms-code-text-to-speech=”button”
Now select the content that you want to be read out loud – you can even select the entire page. Add the following attribute to it:
- ms-code-text-to-speech=”text”
Making it work
Now that you’ve got your button built and styled and you’ve added the required attributes to the button and the content, all you need to do is add the MemberScript #86 custom code to your page, before the closing body tag.
Conclusie
That’s everything, you can now go ahead and test text-to-speech button on your live site.
If you want to use our demo project to get you started, just click the button below to add it to your Webflow site.
![](https://cdn.prod.website-files.com/5c2a9a234fdbba7439c48fa4/65f1a9a5010154000b9b0b9c_UngdBREAZajq-w4GAZGb0LPfFZ-Q8SSFsT_YdYLda6huIZwba8YaHfAPmr7czCZCR1lbT-EtTYtM4hwqNmP1mrAzYLS4xUG-rMobtVngCu0lCmW4Du_MMYpmYlNyP3fHb2RN_JWKgWCNSRTyXaPSTkE.webp)
Our demo can help you easily add a text-to-speech button to improve the accessibility of your Webflow site.