基于 webrtc 的安卓 vad 库
在录音的读取buffer过程中,调用 vad.processBuffer(sampleRate, buffer, length); 返回值即为当前buffer中是否在说话有人声 buffer大小建议为sampleRate/10
- Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
- Add the dependency
dependencies {
implementation 'com.github.ideastudios:Vad:1.0.1'
}