audo-ai / magic-mic

Open Source Noise Cancellation App for Virtual Meetings
https://magicmic.ai/
352 stars 38 forks source link

Improve Latency #10

Closed gabcoh closed 3 years ago

gabcoh commented 3 years ago

In pipesource-mvp there is a huge amount of latency. This is probably due in part to both denoiser and maybe something in pipesource app itself. Need to do more investigation to see if anything is coming from pipesource, but on the denoiser end here are some ideas to improve latency:

I'll add more info to this issue if I find more.

gabcoh commented 3 years ago

latency is much improved with sample rate of 16000

gabcoh commented 3 years ago

I just tested 15 times and latency was very good for all of them. I made some changes like clearing denosier buffer if it ever gets over 1 second and reducing the virtual mic buffer to 1600 from 16000, but I'm really not convinced that this is fixed yet.