ResponsiveVoice.JS
ResponsiveVoice is a HTML5-based Text-To-Speech library designed to add voice features to web sites and apps across all smartphone, tablet and desktop devices. It supports 51 languages through 168 voices, no dependencies and weighs just 14kb.
How to Use
To include ResponsiveVoice on an HTML page, just add this script tag to the <head> section:
<script src=“http://code.responsivevoice.org/responsivevoice.js”></script>
To get ResponsiveVoice to speak a sentence, all it requires is a string of text:
responsiveVoice.speak(“hello world”);
The .speak() function also supports other parameters such as the speaker, volume, pitch, and rate:
responsiveVoice.speak(“hello world”, “UK English Male”, {pitch: 2});
There are also various other functions associated with ResponsiveVoice, such as cancel(), pause(), resume(), isPlaying(), etc.
