alphacep / unimrcp-vosk-plugin

Open source cross-platform implementation of MRCP protocol
http://www.unimrcp.org
Apache License 2.0
17 stars 11 forks source link

Failed to Load DSO when ./unimrcpserver is started #7

Closed omerbitikcioglu closed 1 year ago

omerbitikcioglu commented 2 years ago

Hi,

I am a total beginner and trying to establish UniMRCP server with the Vosk plugin. I started the server in my local but having a linking issue below:

2022-07-27 10:16:08:539422 [INFO] Load Plugin [Vosk-Recog-1] [/usr/local/unimrcp/plugin/voskrecog.so] 2022-07-27 10:16:08:548585 [WARN] Failed to Load DSO: /usr/local/unimrcp/plugin/voskrecog.so: undefined symbol: vosk_recognizer_set_nlsml

I started the ./unimrcpclient, it is integrating with the server but I can not use the recognition engine. Rest works fine with demo plugins but when I try run recog it gets the error below:

2022-07-27 10:27:01:680069 [INFO] Receive SIP Event [nua_r_invite] Status 406 Not Acceptable [SIP-Agent-1] 2022-07-27 10:27:01:680110 [INFO] Receive SIP Event [nua_i_state] Status 406 Not Acceptable [SIP-Agent-1]

I tried to run ./bootstrap, ./configure, make, make install on unimrcp_vosk_plugin folder again and again nothing changed. My vosk_api is also installed on /home/username/vosk-api and I configured the file Makefile.am in plugins/vosk-recog as VOSK_HOME = /home/username/vosk-api

Could you explain what is wrong? Thanks.

omerbitikcioglu commented 1 year ago

Solved this issue:

I was using the libvosk.so I downloaded from somewhere.

I installed the vosk api with pip3 install vosk

And used the libvosk.so at /usr/local/lib/python3.8/dist-packages/vosk-0.3.43-py3.8.egg/vosk/libvosk.so

And now everything is fine.