node-edge-tts
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "node-edge-tts", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "node-edge-tts is a module that using Microsoft Edge's online TTS (Text-to-Speech) service on the Node.js", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
const { randomBytes } = require('node:crypto') | ||
const fs = require('node:fs') | ||
const { writeFileSync, createWriteStream } = require('node:fs') | ||
const { WebSocket } = require('ws') | ||
@@ -81,3 +81,3 @@ const { HttpsProxyAgent } = require('https-proxy-agent') | ||
}) | ||
fs.writeFileSync(subPath, JSON.stringify(subFile, null, ' '), { encoding: 'utf-8' }) | ||
writeFileSync(subPath, JSON.stringify(subFile, null, ' '), { encoding: 'utf-8' }) | ||
} | ||
@@ -88,3 +88,3 @@ | ||
return await new Promise((resolve, reject) => { | ||
let audioStream = fs.createWriteStream(audioPath) | ||
let audioStream = createWriteStream(audioPath) | ||
let subFile = [] | ||
@@ -91,0 +91,0 @@ _wsConnect.on('message', async (data, isBinary) => { |
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
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
7173