npm.io
1.0.2 • Published 9 years ago

text-to-speech-window

Licence
ISC
Version
1.0.2
Deps
0
Vulns
0
Weekly
0

This is a small script for transfering text to speech in the window.

To access this package use Require('text-to-speech-window').

Main Method = synthVoice: function(text) { const synth = window.speechSynthesis; const utterance = new SpeechSynthesisUtterance(); utterance.text = text; synth.speak(utterance); }

Text is the text you want to have read.