In recorderjs rec.exportWAV([callback][, type])
is used to generate a Blob object containing the recorded audio in WAV format.
But the WAV file is taking large space, for 30sec it is approximately 1mb. So I want to record the audio in format of mp3/m4a which takes less space.
Is there any way to record audio in format of mp3/m4a.
i think you should check this link : HTML5 record audio to file
here u can change the audio type like this : type = type || config.type || 'audio/wav';