Comparing version 0.2.2 to 0.2.3
{ | ||
"name": "speak-tts", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "Browser TTS (using speechSynthesis API) made easy", | ||
"main": "index.js", | ||
"main": "lib/speak-tts.js", | ||
"scripts": { | ||
@@ -7,0 +7,0 @@ "dev": "webpack-dev-server --devtool eval --progress --colors --content-base demo/build --hot --inline", |
@@ -26,3 +26,3 @@ Speech synthesis made easy - Browser based text to speech (TTS) | ||
import Speech from 'speak-tts' // es6 | ||
// var Speech = require('speak-tts') //es5 | ||
// var Speech = require('speak-tts') //if you use es5 | ||
``` | ||
@@ -51,3 +51,3 @@ | ||
'pitch': 0.8 | ||
}); | ||
}) | ||
``` | ||
@@ -69,3 +69,3 @@ Check browser support : | ||
onEnd: () => {console.log('your text has successfully been spoken.')} // optionnal onEnd callback | ||
}); | ||
}) | ||
``` | ||
@@ -76,4 +76,4 @@ | ||
```bash | ||
Speech.setLanguage('en-GB'); // set language to english | ||
Speech.setLanguage(null); // activate language autodetection | ||
Speech.setLanguage('en-GB') // set language to english | ||
Speech.setLanguage(null) // activate language autodetection | ||
``` | ||
@@ -84,3 +84,3 @@ | ||
```bash | ||
Speech.stop(); | ||
Speech.stop() | ||
``` | ||
@@ -130,3 +130,3 @@ | ||
```bash | ||
import Speech from '../src/speak-tts.js' | ||
import Speech from 'speak-tts' | ||
@@ -182,3 +182,3 @@ const _addVoicesList = (voices) => { | ||
speech-tts is dual licensed under the MIT license and GPL. | ||
speak-tts is dual licensed under the MIT license and GPL. | ||
For more information click [here](https://opensource.org/licenses/MIT). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
593522