1、下载node.js安装包
# wget https://nodejs.org/dist/v10.15.0/node-v10.15.0-linux-x64.tar.xz
2、解压
# tar -xf node-v10.15.0-linux-x64.tar.xz
3、设置全局变量
# vi /etc/profile
最后一行放入
# PATH=$PATH:/software/node-v10.15.0-linux-x64/bin
4、刷新配置文件
# source /etc/profile
5、测试
# npm -v
# node -v
wx-voice安装
1、# npm install wx-voice --save
2、# npm install wx-voice -g
3、# wx-voice compile
测试
# wx-voice decode -i input.silk -o output.mp3 -f mp3
# wx-voice encode -i input.mp3 -o output.silk -f silk