Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

simple-tts-mp3

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-tts-mp3 - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

output.mp3

12

index.js

@@ -17,5 +17,5 @@ const googleTTS = require('google-tts-api');

.then((result) => {
const base64Data = result[0].base64;
const buffer = Buffer.from(base64Data, 'base64');
fs.writeFileSync(filePath, buffer);
const buffers = result.map(result => Buffer.from(result.base64, 'base64'));
const finalBuffer = Buffer.concat(buffers);
fs.writeFileSync(filePath, finalBuffer);
console.log(`Audio file ${filePath} created successfully`);

@@ -38,5 +38,5 @@ })

.then((result) => {
const base64Data = result[0].base64;
const buffer = Buffer.from(base64Data, 'base64');
return buffer;
const buffers = result.map(result => Buffer.from(result.base64, 'base64'));
const finalBuffer = Buffer.concat(buffers);
return finalBuffer;
});

@@ -43,0 +43,0 @@ }

{
"name": "simple-tts-mp3",
"version": "1.0.1",
"version": "1.0.2",
"description": "Converts text to mp3 audio using google-tts-api, it hasn't a limit",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc