Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
text-to-speech-file
Advanced tools
No More Updates: This package is not going to be updated anymore.
Please use newer (and better) NodTTS
package instead.
This is a simple NodeJS module to convert text into speech file. This module uses Google service to convert those text into file therefore, this module depends on internet.
NOTE: Due to usage of free Google Text-To-Speech API, this module can not deal with texts which are over than 200 characters. See here for more information
These are some step by step series that will get you production version of the module in your project
# add to project
yarn add text-to-speech-file
Those steps should add this module to your project's node_module
.
To use this module, simply do import and call synthesize('YOUR_SAMPLE_TEXT_HERE', 'YOUR_FILE_SAVE_PATH_HERE') function of it
// importing
import ttsf from 'text-to-speech-file'
// or
import { synthesize } from 'text-to-speech-file'
// try synthesizing text
ttsf.synthesize('hello from shrotavre!', `${__dirname}/sample-speech.mp3`)
// or
synthesize('hello from shrotavre!', `${__dirname}/sample-speech.mp3`)
Those steps should produce you a sample hello from shrotavre!
sound file.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
These are some step by step series that will get you a development version running in your machine
# setup dependencies
yarn
# build the project
yarn build
# test out script's `synthesize()` function
yarn test
Those steps should produce you a sample hello from shrotavre!
sound file will be generated inside /temp
folder.
FAQs
Convert text to speech file
The npm package text-to-speech-file receives a total of 0 weekly downloads. As such, text-to-speech-file popularity was classified as not popular.
We found that text-to-speech-file 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.