espressif / esp-adf

Espressif Audio Development Framework
Other
1.52k stars 669 forks source link

how to set volume threshold to let VAD work (AUD-4854) #1068

Closed Jackyliszsh closed 1 month ago

Jackyliszsh commented 1 year ago

If the volume is not so high, VAD can not detect the speech. Is there API to set the volume threshold to let VAD check out the speech even with low volume?

jason-mao commented 12 months ago

@Jackyliszsh The VAD can detect speech only there is enough SNR. If the volume is too low, VAD can't works well. You can try the the VAD threshold https://github.com/espressif/esp-sr/blob/0c1eecaac259af95f76723b61d4e16cef5904fc7/include/esp32/esp_vad.h#L36

jason-mao commented 1 month ago

This topic has become inactive so I'm going to close the issue. Please reopen this if you have any questions or need any further assistance.