simple-tts-mp3
Advanced tools
Comparing version 1.0.1 to 1.0.2
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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
240031
6
1