edge-tts-node
Advanced tools
Comparing version 1.1.15 to 1.1.16
@@ -83,2 +83,3 @@ "use strict"; | ||
if (this._enableLogger) { | ||
o.unshift('edgetts:'); | ||
console.log(...o); | ||
@@ -136,3 +137,3 @@ } | ||
this._ws.onmessage = (m) => { | ||
this._log("ttttttt: ", typeof m.data); | ||
this._log("type:::::::: ", typeof m.data); | ||
let mdata = m.data; | ||
@@ -163,3 +164,3 @@ if (typeof mdata === 'string') { | ||
const buffer = buffer_1.Buffer.from(mdata); | ||
const message = mdata.toString(); | ||
const message = buffer.toString(); | ||
const requestId = /X-RequestId:(.*?)\r\n/gm.exec(message)[1]; | ||
@@ -178,3 +179,3 @@ this._log(message.includes("Path:audio"), buffer_1.Buffer.isBuffer(mdata), mdata instanceof ArrayBuffer); | ||
else if (message.includes("Path:audio") && buffer_1.Buffer.isBuffer(mdata)) { | ||
this._pushAudioData(mdata, requestId); | ||
this._pushAudioData(buffer, requestId); | ||
} | ||
@@ -181,0 +182,0 @@ else { |
{ | ||
"name": "edge-tts-node", | ||
"version": "1.1.15", | ||
"version": "1.1.16", | ||
"description": "An Azure Speech Service module that uses the Microsoft Edge Read Aloud API.", | ||
@@ -5,0 +5,0 @@ "author": "Migushthe2nd <Migushthe2nd@users.noreply.github.com>", |
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
32785
596