Socket
Book a DemoInstallSign in
Socket

readandspeech

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

readandspeech

Read a text

0.0.7
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

read

FAQs

Package last updated on 15 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.