edge-tts-node
Advanced tools
Comparing version 1.1.6 to 1.1.7
@@ -136,3 +136,3 @@ "use strict"; | ||
this._log("ttttttt: ", typeof m.data); | ||
const mdata = m.data; | ||
let mdata = m.data; | ||
if (typeof mdata === 'string') { | ||
@@ -159,6 +159,4 @@ const encodedData = buffer_1.Buffer.from(mdata, 'utf8'); | ||
} | ||
else if (typeof mdata === 'object') { | ||
this._log(JSON.stringify(mdata)); | ||
} | ||
else { | ||
mdata = typeof mdata === 'object' ? mdata['data'] : mdata; | ||
const buffer = buffer_1.Buffer.from(mdata); | ||
@@ -165,0 +163,0 @@ const message = buffer.toString(); |
{ | ||
"name": "edge-tts-node", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"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
32594
594