Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
simple-tts-mp3
Advanced tools
Converts text to mp3 audio using google-tts-api, it hasn't a limit
This package provides two methods to create MP3 audio files from text using the google-tts-api module, it's compatible with TypeScript too, find it on npm!
If you like it, please leave a ⭐ STAR on GitHub ⭐
Method | Options [optional] | Description |
---|---|---|
createAudioFile | text, fileName, [language = 'en'] | Creates an mp3 audio file from text and returns its final path - Promise (String) |
getAudioBuffer | text, [language = 'en'] | Creates an mp3 audio buffer from text and returns it - Promise (Buffer) |
ex: ./folder/name
).Check the wiki to see all the languages supported by this package.
npm install simple-tts-mp3
// Importing create file method from package
const { createAudioFile } = require('simple-tts-mp3');
// Creates an "output.mp3" audio file with default English text
createAudioFile('Hi, How are you?', 'output');
// Creates an "output.mp3" audio file with Spanish text and promise resolved
createAudioFile('Hola, ¿Cómo estás?', 'output', 'es').then((filepath) => {
console.log(filepath);
});
// Creates an "output.mp3" audio file with Spanish text inside the "audios" folder and awaits filepath
const filepath = await createAudioFile('Todo bien, gracias', './audios/output', 'es');
// Importing create
const { getAudioBuffer } = require('simple-tts-mp3');
// Creates an MP3 audio buffer with Spanish text and resolves the promise with it
getAudioBuffer('Hola, ¿cómo estás?', 'es')
.then(buffer => {
// Do something with the buffer
});
// Creates an MP3 audio buffer with default English text and awaits it
const buffer = await getAudioBuffer('Hi, How are you?');
FAQs
Converts text to mp3 audio using google-tts-api, it hasn't a limit
The npm package simple-tts-mp3 receives a total of 39 weekly downloads. As such, simple-tts-mp3 popularity was classified as not popular.
We found that simple-tts-mp3 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
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.