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
146 stars 32 forks source link

nodejs 中的使用, 文件路径是怎么放的呢? #4

Closed jlala closed 7 years ago

jlala commented 7 years ago

voice.decode( "input.silk", "output.mp3", { format: "mp3" }, (file) => console.log(file));

您好,请问上面代码中的 文件路径 是怎么放的,我的nodejs 是 express的,文件路径是绝对路径吗? 我在mac本地执行了没效果

coreader commented 7 years ago

可以选择用绝对或相对路径,都可以。

Ang-YC commented 7 years ago

感谢 @coreader 回答,绝对和相对的都可以, @jlala 可以在测试后回馈下

Ang-YC commented 7 years ago

想确认下目前没问题了吧?

jlala commented 7 years ago

后面没有使用呢,关掉这个啦