wegylexy / rnnoise_wasm

RNNoise for WASM
MIT License
50 stars 10 forks source link

Audio glitch on android #2

Closed shilsircar closed 4 years ago

shilsircar commented 4 years ago

On Android looks like the buffer is too small causing audio glitch.

wegylexy commented 4 years ago

Which version of Chrome are you using on Android?

shilsircar commented 4 years ago

Desktop is fine issue of audio glitch is in Android pixel2 running m84. The issue seems like may be the latency of 128 ms = 2.6 ms @48khz is too small for mobile processing

wegylexy commented 4 years ago

According to WebAudio API candidate recommendation, it is always 128. Implementations could include longer intrinsic buffers though.

What if you use ScriptProcessorNode by hiding the AudioWorkletNode detection code?

shilsircar commented 4 years ago

Script node works fine. Audio is clear and glitch free.

wegylexy commented 4 years ago

May add an option to not use AudioWorklet even available.