-
Notifications
You must be signed in to change notification settings - Fork 139
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
Poor quality sound when GPU/CPU is stressed #20
Comments
I'd say that the issue most likely happens on the recording phase, and not on When you want better performance while executing stuff on the main thread, you usually use a Since we encode the audio being received in real time, you could try to send the buffer to a worker for encoding to see if this would help unburdening the main thread while it listens to the mic. But I haven't tried that, and honestly don't even know if LameJS (our encoder) works on a worker. |
Here are a few findings: Part 1
Part 2
|
Hey, sorry I didn't get back with this. Moving the processing AFTER the recording has fixed the problem. It's obviously a stressed CPU problem and not much can be done about it. |
Thanks @giuliogatto I should probably open a separate issue about the crackling recording on iPhone because it isn't fixed by moving the processing to a Web Worker or after the recording. |
@giuliogatto Would you mind opening a PR with your fix? I'd be glad to encode the recording after it's done instead of real-time. It looks like a good trade-off to have better audio quality. |
@giuliogatto friendly bump, just in case you can share your code with us. |
Hey, sorry @buzinas for the delay: what I meant is that I didn't use this library but DIRECTLY "lame.js" https://github.com/zhuker/lamejs AFTER recording in raw audio format and BEFORE sending data to the server |
Got it. Thanks, @giuliogatto! |
Users still having issues with this, even after I moved lame encoding to after the recording, FWIW. |
I think this may be a #13 dupe |
Hello, first of all thank you for your great library, which works really well in general.
I found a problem in Chrome Desktop Version 83.0.4103.106 (Official Build) (64-bit): I am trying to record sounds while my app is using Window.requestAnimationFrame() with a machine learning algorithm running inside each frame. The problem I am facing is that .getMp3() function generates a file with very poor quality, full of cracks sounds and skips.. I tried reducing the bitrate to 64 but the same thing happens. Any suggestion on how this could be fixed?
Thanks
The text was updated successfully, but these errors were encountered: