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

crackling with web audio #100

Open
bigxd123 opened this issue Sep 15, 2019 · 2 comments
Open

crackling with web audio #100

bigxd123 opened this issue Sep 15, 2019 · 2 comments
Labels
analysis needed This is a question or potential bug that needs further analysis. help wanted The great thing about open-source is that everyone can contribute!

Comments

@bigxd123
Copy link

Is it crackling for anyone else? I tried playing around with the sample rate, enhance the queue directly of the chunks with the web audio api and timing of the context itself but nothing helped the voice streamed from the microphone has little cracks here and there.

And ofc I also tried my own web audio chain with proper timing and not using setTimeout but even that crackles its very minor but its not great.

@bigxd123
Copy link
Author

bigxd123 commented Sep 15, 2019

I played around with it a bit and changed some performance intensive parts and achieved some good results and wanted to share it:

https://pastebin.com/EVQu4X30

this pretty much is a drop in replacement for getUserMedia as well which ofc doesnt support any actual constraints, those still need to be configured via the cfg of audioinput BUT it does handle starting and stopping of the underlying recording and keeps track of Tracks.

This should only be used as rough idea since its lacking error handling of the library itself and enough testing to be used in production.

@edimuj edimuj added analysis needed This is a question or potential bug that needs further analysis. help wanted The great thing about open-source is that everyone can contribute! labels Sep 20, 2019
@pgcan
Copy link

pgcan commented Sep 27, 2019

I am also getting the same crackling sound on WebAudio. The sound is input via USB input in my mobile device. It works fine when I record the audio as WAV file but when sound is converted to Web Audio and sent over WebRTC there is crackling sound.
I tested with a constant frequency tone but check the sound wave graph at this link https://ibb.co/Wv0LpRg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analysis needed This is a question or potential bug that needs further analysis. help wanted The great thing about open-source is that everyone can contribute!
Projects
None yet
Development

No branches or pull requests

3 participants