Make your webpages talk! This is a simple plugin that uses the TTSReader engine to read out loud any text on your webpage.
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>
let el = document.createElement('script')
el.setAttribute('src','https://unpkg.com/ttsreader-plugin/main.js');
el.setAttribute('defer',true);
document.head.appendChild(el);
- 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.
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.