Ang-YC / wx-voice

Convert audio files between Tencent apps (Weixin / Wechat, QQ) and Silk codec with other general formats such as MP3 and M4A
MIT License
145 stars 32 forks source link

运行报错,提示 Silk SDK not found #8

Closed fatesinger closed 5 years ago

fatesinger commented 5 years ago

已安装 ffmpeg 和 Development Tools

CentOS Linux release 7.5.1804 (Core)

NodeJs v8.1.4

代码

const WxVoice = require('wx-voice');
var voice = new WxVoice();

报错

throw new Error("Silk SDK not found, make sure you compiled using command: wx-voice compile");

Ang-YC commented 5 years ago

您好,目前这只是一个 C 代码的包装,也没进行 node-gyp 的结合

所以运行前是需要在命令行输入 wx-voice compile 就可以了 (要在项目所属的文件夹内输入)

fatesinger commented 5 years ago

感谢!!!