To get started with the Developer API follow these instructions.
It’s easy to use the script directly from code.responsivevoice.org for non-commercial licenses. If you want to use ResponsiveVoice for a commercial project please see pricing.
SIMPLE TO USE
Add this code to your webpage
1 |
<script src="https://code.responsivevoice.org/responsivevoice.js?key=YOUR_UNIQUE_KEY"></script> |
Then use it on the page
1 |
<input onclick="responsiveVoice.speak('Hello World');" type="button" value="Play" /> |
Feel free to link to the files at code.responsivevoice.org. We maintain a fair usage policy on bandwidth, please contact us if you believe your usage may be high.
LATEST STABLE
The latest stable version of ResponsiveVoice is served from the root of code.responsivevoice.org:
https://code.responsivevoice.org/responsivevoice.js?key=YOUR_UNIQUE_KEY (minified)
https://code.responsivevoice.org/responsivevoice.src.js (readable src)
Please note that on production environments it’s best to use the minified version, as fallback audio is disabled for the non-minified script.
SPECIFIC VERSION
You’ll find a specific ResponsiveVoice version by appending the version number to the root level:
https://code.responsivevoice.org/1.6.0/responsivevoice.js?key=YOUR_UNIQUE_KEY (minified)
TRUNCATED VERSIONS
By truncating the version number you can load the latest stable release within the major version number. For example, 1.5 points to the latest stable 1.5.x, but when 1.6 or 2.0 are released, you will still load the latest release of 1.6.
https://code.responsivevoice.org/1.6/responsivevoice.js?key=YOUR_UNIQUE_KEY (minified)
API
SDK
- Text to Speech Play Button
- Text to Speech Menus and Links
- Text to Speech Highlighted Selected Text
- Automatically Speak Text when Webpage Displays
- Text to Speech Widget
- Text to Speech Background Audio
- Text to Speech Automatically Detect Language
- Text to Speech Exit Intent Message
- 3D Speaking Animated Avatars and Characters
- Using Callbacks