Web Audio API - record to MP3?

前端 未结 6 1218
感情败类
感情败类 2021-02-01 06:06

I am asking because I couldn\'t find the answer anywhere. I have successfully implemented RecorderJS in order to record microphone input in JS. However, the recorded file is WAV

6条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-01 06:32

    To record mp3 using javascript without any other framework using a web worker, you can use this project: https://github.com/nusofthq/Recordmp3js which is also very well explained here:

    http://audior.ec/blog/recording-mp3-using-only-html5-and-javascript-recordmp3-js/

    With this, it's also possible to write to a .mp3 file and to make it downloadable.

提交回复
热议问题