Ang YC
Ang YC
先安装 WxVoice: ``` $ npm install wx-voice --save $ npm install wx-voice -g $ wx-voice compile ``` Command Line 指令: ``` wx-voice encode input.mp3 output.silk silk ``` Node.JS 代码: ```js...
虽然微信的后缀是 amr 但是格式是 silk,可以试看: `wx-voice encode msg.mp3 msg.amr silk`
有点奇怪,微信录音我都可以双向重复转换的,可以发样本给我看看吗?
转换没问题呢,可能是你的 ffmpeg 设置上有问题,可以看下 ffmpeg 的输出? `ffmpeg -version`
Configuration 为空,可以试看根据这个安装吗? https://github.com/Ang-YC/wx-voice/blob/master/README.cn.md#installing-ffmpeg
已经制造了同样的问题,确定了是 bug,完成后会更新
新版本已经解决了这个问题,可透过下列代码更新 ``` npm install wx-voice@latest --save npm install wx-voice@latest -g wx-voice compile ``` 谢谢支持 =)