thewh1teagle / vad-rs

Speech detection using silero vad in Rust
https://crates.io/crates/vad-rs
11 stars 1 forks source link

usage on windows & linux? #1

Open louis030195 opened 2 months ago

louis030195 commented 2 months ago

works on mac but compilation fails on linux/windows, any advice?

https://github.com/mediar-ai/screenpipe/actions/runs/10724672255/job/29740844267

thewh1teagle commented 2 months ago

The crate tested on Linux/Windows/macOS.

You have linking conflicts with other crates.

In WIndows https://github.com/mediar-ai/screenpipe/actions/runs/10724672255/job/29740844267#step:15:737

The library esaxx link msvc static. it should link it dynamic by default that's the Rust's standard.

You can check which crate uses esaxx in your project using cargo tree and patch it

In Linux there's two crates that linking https://github.com/abseil/abseil-cpp. You can try set RUSTFLAGS="-Clink-arg=-Wl,--allow-multiple-definition" environment variable

altunenes commented 2 months ago

I can confirm that this also works on my Windows machine. :-)