text-to-speech-window

1.0.2 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i text-to-speech-window

Weekly Downloads

2

Version

1.0.2

License

ISC

Last publish

Collaborators

  • mrashes