Open bigxd123 opened 5 years ago
I played around with it a bit and changed some performance intensive parts and achieved some good results and wanted to share it:
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.
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.
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.