下載并安裝ffmpeg
http://ffmpeg.org/download.html?aemtn=tg-on
https://www.gyan.dev/ffmpeg/builds/?
配置環(huán)境變量:
?查詢版本
裝包:
yarn add fluent-ffmpeg
const ffmpeg = require('fluent-ffmpeg')
ffmpeg('/temp/ai/hello.webm')
.output(`/temp/ai/hello-${Date.now()}.mp3`)
.on('end', function () {
console.log('Finished processing')
})
.run()
?文章來源地址http://www.zghlxwxcb.cn/news/detail-573173.html文章來源:http://www.zghlxwxcb.cn/news/detail-573173.html
?
到了這里,關(guān)于node使用fluent-ffmpeg把webm格式的音頻轉(zhuǎn)成mp3的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!