closeio / mic-recorder-to-mp3

Microphone Recorder to mp3
MIT License
244 stars 138 forks source link

Distorted voice on Android Browsers #13

Open Prince-Hamza opened 4 years ago

Prince-Hamza commented 4 years ago

The website works fine on desktop but gives a distorted voice on Android browsers chrome , opera etc. Please help me with this issu my website link : https://arline-fernandez.firebaseapp.com/

rubengt01 commented 4 years ago

I am seeing the same problem. Any workaround?

crazzywizard commented 4 years ago

I really love this package but the distortion in mobile browsers is rough. Any tips to fix this?

buzinas commented 4 years ago

We don't use this on mobile devices and I don't have time to look into this closely, but we'd be glad to accept PRs for anyone that wanna play with the code and try to figure out what's going on.

yeniv commented 4 years ago

I'm having the same trouble with mobile devices. @buzinas do you have any theories on where to start looking for a solution? I'm. happy to have a poke around and see if I can find a solution 👍

buzinas commented 4 years ago

Currently we encode in "real-time", while we're processing the audio. This might be too much for a mobile processor to handle (processing audio and conversion). This is the first thing I'd try: save the audio Buffer to memory, and only encode it on stop.

picasocro1 commented 4 years ago

I've prepared PR with encodeAfterRecord param in configuration.

This could help with sound distortion on mobile devices!

Prince-Hamza commented 4 years ago

Qq

tluth commented 4 years ago

Any chance of a new release with this encode after record feature soon?

picasocro1 commented 4 years ago

It's a good question :)

@buzinas?

buzinas commented 4 years ago

Sure, I'll review it soon! Thanks for the PR :)

buzinas commented 4 years ago

Just an update: we're currently finishing a cycle, but I'll be able to work on this in October.

oonqt commented 3 years ago

Are there any updates on this? I really need a decent audio recorder for my project. I've been looking for one for the past 6 hours and they all suffer from the same issue.

shaharlin commented 3 years ago

Will love to get an update on this issue as well.

Cabritone commented 2 years ago

Based on the fact that ScriptProcessorNode is deprecated for years, have you explored the possibility to migrate to use Audio Worklet since they does not rely in the main thread to do the "heavy job" ?

https://developer.chrome.com/blog/audio-worklet/

astronati commented 1 year ago

@picasocro1 did you try if your patch worked? I tried but it seems it does not fix the issue on mobile.

Thanks for the help