Commit 6b955f53 authored by Oriol Gómez's avatar Oriol Gómez

tts stop

parent 51db085f
Version 3.1 October 2018
TTS Speech now stops when an option in the main menu is selected.
Version 3.0 September 2018
- Added first letter navigation in the main menu.
- Explained in the main menu that you can use page up and down to control music volume as well as first letter navigation.
......
......@@ -49,6 +49,7 @@ if (fs.existsSync(packdir + 'select.ogg')) {
mainMenu.sndChoose = so.create(packdir + 'select');
}
mainMenu.run(async s => {
speech.stop();
so.directory = './sounds/';
mainMenu.destroy();
switch (s.selected) {
......
......@@ -28,6 +28,9 @@ utterThis.rate=this.rate;
setWebTTS(tts) {
this.webTTS = tts;
}
stop() {
if (this.webTTS) this.synth.cancel();
}
} // End class
var speech = new TTS(false);
if (process.platform=='darwin') speech.webTTS=true;
......
......@@ -435,9 +435,9 @@
}
},
"lodash": {
"version": "4.17.4",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz",
"integrity": "sha1-eCA6TRwyiuHYbcpkYONptX9AVa4="
"version": "4.17.11",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz",
"integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg=="
},
"lodash.get": {
"version": "4.4.2",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment