试了试Debian 11编译unimrcp-vosk-plugin,步骤如下:
apt install -y sudo git wget make build-essential ?automake autoconf 'libtool-bin|libtool' pkg-config ...? # sudo is vip
cd /usr/src
wget https://www.unimrcp.org/project/component-view/unimrcp-deps-1-6-0-tar-gz/download -O unimrcp-deps-1.6.0.tar.gz
tar xvzf unimrcp-deps-1.6.0.tar.gz
cd unimrcp-deps-1.6.0./build-dep-libs.sh # yes, yes
cd /usr/src
git clone https://github.com/unispeech/unimrcp.git
cd unimrcp
./bootstrap
./configure
make
make install
cd /usr/src
git clone https://github.com/alphacep/unimrcp-vosk-plugin.git
cd?unimrcp-vosk-plugin
./bootstrap
./configure
make?
make install
echo '/usr/local/lib' >> /etc/ld.so.conf
ldconfig
/usr/local/unimrcp/bin/unimrcpserver
Model path is hardcoded to /opt/kaldi/model, download Chinese model and put here.
https://alphacephei.com/vosk/models