ran npm run tdd & generated TDD
This commit is contained in:
5
test/speechSynthesis/speechSynthesis.js
Normal file
5
test/speechSynthesis/speechSynthesis.js
Normal file
@ -0,0 +1,5 @@
|
||||
module.exports = message => {
|
||||
const msg = new SpeechSynthesisUtterance(message);
|
||||
msg.voice = window.speechSynthesis.getVoices()[0];
|
||||
window.speechSynthesis.speak(msg);
|
||||
};
|
||||
Reference in New Issue
Block a user