Web Audio API - record to MP3?

前端 未结 6 1164
感情败类
感情败类 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

    Encoding into smaller formats is currently only supported by Firefox:

    • http://w3c.github.io/mediacapture-record/MediaRecorder.html
    • https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder

    Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit) Not supported 25.0 (25.0) Not supported Not supported Not supported

    AFAIK only OGG is supported. But better OGG than WAV.

提交回复
热议问题