ttsreader-plugin
v0.2.3
Published
Make your webpages talk! This is a simple plugin that uses the TTSReader engine to read out loud any text on your webpage.
Downloads
1,109
Readme
TTSReader-Plugin
Make your webpages talk! This is a simple plugin that uses the TTSReader engine to read out loud any text on your webpage.
Import:
Simply place the following code into your webpage's <head>
tag:
<script src="https://unpkg.com/ttsreader-plugin/main.js" defer></script>
Optional:
In order to NOT display the controls - you can add the following to the html:
<ttsplugin style="display: none;"></ttsplugin>
In order to get notified upon tts ready - add the following script:
<script>
window.ttspluginOnReadyListener = function() {
// DO SOMETHING HERE...
console.log('ttsplugin is ready');
};
</script>
Test on your site from the developer's console:
let el = document.createElement('script')
el.setAttribute('src','https://unpkg.com/ttsreader-plugin/main.js');
el.setAttribute('defer',true);
document.head.appendChild(el);
Developers - how to publish updates to this package?
- Develop in the
src
folder. - Do a
build
by following instructions in theREADME.md
in the top-root folder. (basicallynpm run prepublish
). - Update version in package.json in the dist folder.
- Then
cd dist
and runnpm publish
. - It will publish just the content of dist, and not the whole project.
License:
This is NOT an open-source package, but rather a software package you can use on your site, under the following conditions:
- License is given to use it as is on your site, as described in this file. Do not copy or change.
- General
- This is NOT an open-source package.
- It is published here to be used as a package only.
- All rights reserved to WellSource Ltd. / Ronen Rabinovici - the developer.
- What you may do with this package:
- You may use this package without altering the code.
- What you may not do with this package:
- You may not use this package to create a competing product.
- You may not use this package to create a similar product.
- You may not use this package to create a derivative product.
- You may not copy the code or any part of it.
- You may not reverse-engineer it.