I am trying to include WebRTC VAD into my project, specifically I want the feature for distinguishing audio between voiced and unvoiced but having troubles including it. I am using gcc Built by MinGW-W64 project.
I tried its official repo and even its some community made repo as well but I just can't get them to work. I'm getting some unable to find files error then more unreferenced errors. Please help me how to structure my project to include all necessary files and a makefile would be appreciated. This is how I am including it:#include"webrtc/common_audio/vad/webrtc_vad.c"
I tried making gcc use root directory (which contains webrtc) using I. but getting unreferenced, specifically:
gcc -I. main.c -o main
C:\Users\ALLAHI~1\AppData\Local\Temp\ccovjJHo.o:main.c:(.text+0x8f5): undefined reference to `WebRtcSpl_Init'
C:\Users\ALLAHI~1\AppData\Local\Temp\ccovjJHo.o:main.c:(.text+0x93e): undefined reference to `WebRtcVad_InitCore'
C:\Users\ALLAHI~1\AppData\Local\Temp\ccovjJHo.o:main.c:(.text+0x992): undefined reference to `WebRtcVad_set_mode_core'
C:\Users\ALLAHI~1\AppData\Local\Temp\ccovjJHo.o:main.c:(.text+0xa39): undefined reference to `WebRtcVad_CalcVad48khz'
C:\Users\ALLAHI~1\AppData\Local\Temp\ccovjJHo.o:main.c:(.text+0xa5e): undefined reference to `WebRtcVad_CalcVad32khz'
C:\Users\ALLAHI~1\AppData\Local\Temp\ccovjJHo.o:main.c:(.text+0xa83): undefined reference to `WebRtcVad_CalcVad16khz'
C:\Users\ALLAHI~1\AppData\Local\Temp\ccovjJHo.o:main.c:(.text+0xaa8): undefined reference to `WebRtcVad_CalcVad8khz'
collect2.exe: error: ld returned 1 exit status
compiler-errorsis to mark questions about errors in compilers, not errors in your code