1. original fails hard.
2. Rework works!
Just clone it and pip install -e .
Place CMakeLists.txt and hello.cpp alongside cbits/
mkdir build; cd build
cmake .. && make && ./test_vad
Output:
pi@πlocal ~/code/2024/kit/test_projects/vad/WebRTC_vad/build main
> ./test_vad
Voice detected in frame 1
Voice detected in frame 2
Voice detected in frame 3
Voice detected in frame 4
Voice detected in frame 5
Voice detected in frame 6
Voice detected in frame 7
Voice detected in frame 8
Voice detected in frame 9
Voice detected in frame 10
Voice detected in frame 11
No voice detected in frame 12
No voice detected in frame 13
No voice detected in frame 14
No voice detected in frame 15
No voice detected in frame 16
...
Voice detected in frame 83
Voice detected in frame 84
No voice detected in frame 85
No voice detected in frame 86
No voice detected in frame 87
No voice detected in frame 88
No voice detected in frame 89
No voice detected in frame 90