mattdiamond / Recorderjs

A plugin for recording/exporting the output of Web Audio API nodes
4.16k stars 1.46k forks source link

Is there a way for saving the audio in mp4 format ? to be consistent with mobile #152

Open axilaris opened 8 years ago

axilaris commented 8 years ago

Hi,

I am trying to figure out if there is a way to encode the audio into mp4 audio format ? Reason for this is ios/android are both generating in this format, and I want to be able to be consistent with the audio format. (android mediarecorder for example does not do mp3, thats the reason why this is the preferred format)

This is the target audio outcome Im trying to achieve:

Type: Audio Codec: MPEG AAC Audio (mp4a)

Thanks!

Im guessing if I could change encodeWAV to encodeMPEG4 in here: https://webaudiodemos.appspot.com/AudioRecorder/js/recorderjs/recorderWorker.js

scottmcdonnell commented 8 years ago

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