Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to export mp3 format ? #181

Open
chenweigh opened this issue Nov 29, 2017 · 5 comments
Open

How to export mp3 format ? #181

chenweigh opened this issue Nov 29, 2017 · 5 comments

Comments

@chenweigh
Copy link

No description provided.

@Kagami
Copy link

Kagami commented Feb 20, 2018

Check out https://github.com/Kagami/vmsg

@octavn
Copy link

octavn commented Jun 19, 2018

Recorder.js does not support encoding audio to mp3.

For mp3 check out the vmsg and WebAudioRecorder.js libraries.

@kevinjfq
Copy link

When you call this:
rec.exportWAV([callback][, type])
just pass 'audio/mpeg' as the 'type' arg.

@kevinjfq
Copy link

Hmmm, I think I lied. I told it 'audio/mpeg' but I think the file generated is still a WAV file. :(

@kevinjfq
Copy link

Octavian Naicu answered in detail on stackoverflow:
"When you send audio/mpeg instead of audio/wav to exportWAV() it just (erroneously) changes the MIME type of the wav Blob, it does not magically turn on mp3 encoding - you need the LAME mp3 encoding library for that. The tutorial you're quoting is incorrect in this regard. I've recently written an up to date Recorder.js tutorial. – Octavian Naicu"
https://stackoverflow.com/questions/32138865/how-to-record-audio-in-format-of-mp3-m4a-javascript-recorder-js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants