gkonovalov / android-vad

Android Voice Activity Detection (VAD) library. Supports WebRTC VAD GMM, Silero VAD DNN, Yamnet VAD DNN models.
MIT License
261 stars 60 forks source link

Reduce the frequency of onAudio() callback in Yamnet model. #26

Closed codes29 closed 6 months ago

codes29 commented 6 months ago

Hi, the frequency of onAudio() callback is too high. Is there any method I can reduce the number of callback per sec.

gkonovalov commented 6 months ago

We cannot decrease the frequency of the onAudio() callback in the Yamnet model, as it is essential to generate results for every audio frame.