streamer45 / silero-vad-go

A Golang (CGO) implementation of a Silero VAD powered speech detector
MIT License
23 stars 10 forks source link

cannot compile to go app on M1 arch #4

Closed eschmidbauer closed 4 months ago

eschmidbauer commented 8 months ago

I am getting the following error: when trying to build on my local machine C_INCLUDE_PATH=/opt/homebrew/Cellar/onnxruntime/1.17.0/include/onnxruntime go build

cannot use &hcNodeInputDims[0] (value of type *_Ctype_long) as *_Ctype_longlong value in variable declaration

image

streamer45 commented 8 months ago

Hi @eschmidbauer. This is a known issue which we are looking to fix as part of https://github.com/streamer45/silero-vad-go/pull/3. So far the code will compile on Linux only unless you manually update those failing types as they are slightly different on M1 machines.

/cc @cpoile

streamer45 commented 4 months ago

This should be supported now.