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

WAV is too large. Is there any other type supported? #195

Open
lhc-up opened this issue Mar 4, 2019 · 4 comments
Open

WAV is too large. Is there any other type supported? #195

lhc-up opened this issue Mar 4, 2019 · 4 comments

Comments

@lhc-up
Copy link

lhc-up commented Mar 4, 2019

No description provided.

@rescue1155
Copy link

+1

1 minute of audio goes to 5MB, How can we reduce it ?

@martin-nazaryan
Copy link

Yes, i have the same problem. is there any way to compress audio ?

@rescue1155
Copy link

You can use the media recorder (The default way) that supported in all major browsers.
For non supported browsers (mostly: safari on iOS devices), you can using media-recorder-polyfill (https://github.com/ai/audio-recorder-polyfill).

That will record the voice in wav format, with best quality 10mints of audio upto 4.5 MBs. (default media recorder).
If polyfill media recorder library will use, That will record about 55% less than that library.

@xiangyuecn
Copy link

xiangyuecn commented Jul 29, 2019

Maybe MediaRecorder can be used to convert recorded wav audio into webm.

Or use lamejs to convert PCM to MP3.

wav blob can get pcm through wavBlob.slice(44,wavBlob.size,"audio/pcm").

demo: https://xiangyuecn.github.io/Recorder/

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