0.0.7 • Published 3 years ago

readandspeech v0.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

readAndSpeech

Présentation

ReadAndSpeech is an opensource library. You can read a text using the native API SpeechSynthesis.

Installation

Use npm to install the library.

npm install readandspeech

Usage

import ReadAndSpeech from 'readandspeech'

const readAndSpeech = new ReadAndSpeech // Initialise reader

document.querySelector('button').addEventListener('click', (e) => {
  e.preventDefault()
  readAndSpeech.speak('Hello world')
})

You can enable a emoji parser with the parameter translateEmoji. Default value is false. Translator is based on emojilib

import ReadAndSpeech from 'readandspeech'

const readAndSpeech = new ReadAndSpeech({
  translateEmoji: true
}) // Initialise reader

Contribute

You can contribute to improve the project. Fork the repo, create a branch, push your modification and submit a pull request

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago