The Easy Text-to-Speech javascript package allows developers to easily implement text to speech
into their site. Using the browsers built in text to speech capabilities, the Reader javascript class integrates
any feature you could want in text to speech.
This class allows you to change the voice, pitch, speed, and highlighting color with a minimal amount of code. Most this pages content is readable via a click. Using the Reader class,
this example page can highlight and read all elements using the following code:
Array.from(document.querySelectorAll(".clickable")).forEach(el => {
el.addEventListener("click" , () => {
let reader = new Reader();
reader.setElement(el);
reader.read();
}); })
You are able to have sub-elements that contain
Documentation can be found at https://code.foureyedjimmy.com/reader/docs or by using the Reader.docs() function. Suggestions and bugs can be reported at https://foureyedjimmy.com/contact?p=reader&r=bug/suggestion as well as by using Reader.report();