Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
select-and-speak
Advanced tools
Readme
npm install select-and-speak
Select (highlight) text in your browser and have it spoken by speech synthesis. Use https://github.com/tom-s/speak-tts for the speech synthesis.
See browser support here : http://caniuse.com/#feat=speech-synthesis
Import the component :
import Speech from 'select-and-speak' // es6
// var Speech = require('select-and-speak') //if you use es5
Start the component :
const speech = new Speech()
speech.init().then((data) => {
// The "data" object contains the list of available voices and the voice synthesis params
console.log("Speech is ready, voices are available", data)
}).catch(e => {
console.error("An error occured while initializing : ", e)
})
// Exemple with conf
Speech.init({
'wordwrap': true, // default: whether or not selection should be expanded to the end of the word
'autospeak': true // default: whether or not text should be spoken on selection (mouseUp or touchEnd event)
// you can also add similar options to the ones in init() from https://github.com/tom-s/speak-tts
});
The Speech class inherits from the class provided by speak-tts. It means all the methods from speak-tts are available, plus the following:
Set wordwrap :
speech.setWordwrap(false)
Set autospeak :
speech.setAutospeak(false)
Speak the current selection :
speech.speakSelectedText() // you can add similar options to the ones in speak() from https://github.com/tom-s/speak-tts
Get current text selection :
speech.getSelectedText({})
These will be added soon. Please do not hesitate to add some !
I am a full-stack Javascript developer based in Lyon, France.
speech and speak is dual licensed under the MIT license and GPL. For more information click here.
FAQs
Select and speak
The npm package select-and-speak receives a total of 18 weekly downloads. As such, select-and-speak popularity was classified as not popular.
We found that select-and-speak demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.