vosk-api icon indicating copy to clipboard operation
vosk-api copied to clipboard

FreeBSD build script and patches

Open tpoindex opened this issue 2 years ago • 7 comments

This patch adds support for building Vosk-API under FreeBSD. A couple of notes: I didn't see a good place to stick the build script, so I create a 'misc' directory. There is a small patch to the upstream Kaldi to add FreeBSD support, currently it's inline in the build script, I'll also submit a PR to Kaldi for this. There a two small patches to Vosk files, one just adds FreeBSD support to the Python package, the other makes simple changes to c/Makefile to use generic $(CC) and $(CXX) makefile definitions. All C/C++ compilation is done with clang in FreeBSD. Last, I've only tested building for C and Python.

tpoindex avatar Apr 25 '22 03:04 tpoindex

Thanks! Looks great.

makefile change could go to kaldi repo indeed, maybe even to upstream kaldi, should we just wait for it then?

nshmyrev avatar Apr 25 '22 07:04 nshmyrev

I've summited an upstream PR to Kaldi master, https://github.com/kaldi-asr/kaldi/pull/4733.

tpoindex avatar Apr 25 '22 22:04 tpoindex

Thanks! Few days then.

nshmyrev avatar Apr 26 '22 00:04 nshmyrev

Kaldi maintainers merged my FreeBSD patches into master: https://github.com/kaldi-asr/kaldi/pull/4733

tpoindex avatar Apr 27 '22 14:04 tpoindex

@tpoindex thanks, I've merged into our kaldi as well, now build should be easier.

nshmyrev avatar Apr 27 '22 14:04 nshmyrev

Great, I'll update this PR to exclude the inline patches to Kaldi, might not be for a few days.

tpoindex avatar Apr 27 '22 15:04 tpoindex

Updated the commit to remove the Kaldi in-stream patches, which are now included in upstream kaldi-asr/kaldi master as well as the alphacep/kaldi vosk branch.

tpoindex avatar Apr 29 '22 03:04 tpoindex