I did create a React Cordova app which listen the mic based on the https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API, and show a visualization of the listening mic sound.
I can see a delay of about 1 second or maybe more, between the sound which is output in the speakers in my room and the graph shown on the Android app.
I can imagine few possible reasons:
- React is not fast enough for such an app, which I doubt
- I am analyzing too many frequencies of the audio data, and somehow I should only get frequencies I am interested in…
- My phone is too slow.
Do you have any suggestion to improve output of this specific app?
Source: React – Stack Overflow