1.1.2 • Published 30 days ago

speechreader v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
30 days ago

README

speechreader use the SpeechSynthesisUtterance interface of the Web Speech API and provider a ready to use wrapper class to start adding TTS functionality to your project.

Installation

With npm installed, run :

$ npm install speechreader

Usage

Import the synthesizer class

import { Synthesizer } from 'speechreader'

Use the Synthesizer to read text

 const synthesizer = new Synthesizer('I am a little tea pot')
 synthesizer.play()

Use the Synthesizer to read HTML text

 const synthesizer = new Synthesizer('<html><h1>I am a little tea pot</h1></html>')
 synthesizer.play()

Set speech synthesizer local

 const synthesizer = new Synthesizer('I am a little tea pot','en-US')
 synthesizer.play()

Pause text reading

 synthesizer.pause()

resume text reading

 synthesizer.resume()
1.1.2

30 days ago

1.0.0

30 days ago