alphacep / vosk-api

Offline speech recognition API for Android, iOS, Raspberry Pi and servers with Python, Java, C# and Node
Apache License 2.0
7.36k stars 1.04k forks source link

Java - Are Mac M1 binaries available? #1505

Open timmolter opened 5 months ago

timmolter commented 5 months ago

Where do the binaries that are packed in the vosk jar come from? And where can we get one that works with Mac M1?

Screenshot 2024-01-22 at 9 53 03 PM
nshmyrev commented 5 months ago

Binaries for libvosk are built in src folder.

https://repo1.maven.org/maven2/com/alphacephei/vosk/0.3.45/vosk-0.3.45.jar

has mac dylib inside. Not sure if it works, but probably it should.

For recent state of OSX build you can check https://github.com/alphacep/vosk-api/issues/1422

timmolter commented 5 months ago

Thanks for your quick response.

Yeah, I checked that jar already, and it only works for Intel-based Macs. I was hoping you could point me to the source code to build those binaries. If you share them, I can get it working for Mac M1 as well and then create a PR with the solution.

YangangCao commented 5 months ago

https://alphacephei.com/vosk/install you can check this page and build binary from source. I had built binary in M1 Mac