wx2tg-puppet 2.1.7 → 2.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action/common.js +2 -2
- package/package.json +1 -1
package/dist/action/common.js
CHANGED
|
@@ -190,9 +190,9 @@ const say = (content, toWxid, ats) => __awaiter(void 0, void 0, void 0, function
|
|
|
190
190
|
}
|
|
191
191
|
else if (content instanceof VOICE_1.Voice) {
|
|
192
192
|
if (content.type === 2) {
|
|
193
|
-
const fileName = new Date().
|
|
193
|
+
const fileName = new Date().getTime();
|
|
194
194
|
const fb = file_box_1.FileBox.fromBase64(content.voiceBase64);
|
|
195
|
-
yield fb.toFile(fileName + '.mp3');
|
|
195
|
+
yield fb.toFile(fileName + '.mp3', true);
|
|
196
196
|
yield new audioUtil_1.SilkToMp3Converter().convertToSilk(fileName + '.mp3', fileName + '.silk');
|
|
197
197
|
const fbResult = file_box_1.FileBox.fromFile(fileName + '.silk');
|
|
198
198
|
content.voiceBase64 = yield fbResult.toBase64();
|