cyrenity / mod_whisper Goto Github PK
View Code? Open in Web Editor NEWA FreeSWITCH module to interface to your speech recognition server over websocket
A FreeSWITCH module to interface to your speech recognition server over websocket
Hey again ๐
I think I got the build setup working (see #12). When running make
I get the following error (FreeSwitch 1.10, Debian 12):
making all mod_whisper
make[4]: Entering directory '/usr/src/freeswitch/src/mod/asr_tts/mod_whisper'
CC mod_whisper_la-mod_whisper.lo
CC mod_whisper_la-websock_glue.lo
websock_glue.c: In function 'ws_asr_thread_run':
websock_glue.c:301:53: error: 'n' is used uninitialized [-Werror=uninitialized]
301 | while (context->started == WS_STATE_STARTED && n >= 0) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
websock_glue.c:300:13: note: 'n' was declared here
300 | int n;
| ^
cc1: all warnings being treated as errors
make[4]: *** [Makefile:751: mod_whisper_la-websock_glue.lo] Error 1
make[4]: Leaving directory '/usr/src/freeswitch/src/mod/asr_tts/mod_whisper'
What would be a reasonable initial value of n
?
Setting int n = 1;
would work in case the context is never empty when context->started == WS_STATE_STARTED
. ๐คทโโ๏ธ
From this example it seems that n
represents the payload size (length of context->result_text
?).
For FreeSwitch 1.10 there is no top-level modules.conf
file.
I looked for modules.conf
by searching the FreeSwitch for ASR/TTS modules that I assume to be included in a similar manner: https://github.com/search?q=repo%3Asignalwire%2Ffreeswitch%20asr_tts&type=code
There, 2 files look like they could be the right ones:
So which one should asr_tts/mod_whisper
be added to? Or do I have to create modules.conf
in the FreeSwitch source root?
Thanks in advance ๐
PS: I am new to FreeSwitch and this is my 1st module installation. ๐
hi,
I had porblem when i load this module on freeswitch, which return the error like this
2023-09-04 18:02:41.525076 [CRIT] switch_loadable_module.c:1785 Error Loading module /usr/local/freeswitch/lib/freeswitch/mod/mod_whisper.so
**/usr/local/freeswitch/lib/freeswitch/mod/mod_whisper.so: undefined symbol: lws_wsi_user**
And i had install ths libwebsockets, and the version of libwebsockets is v4.3.2
ldconfig -p |grep libwebsockets
return:
libwebsockets.so.19 (libc6,x86-64) => /usr/local/lib/libwebsockets.so.19
libwebsockets.so.13 (libc6,x86-64) => /usr/lib64/libwebsockets.so.13
libwebsockets.so (libc6,x86-64) => /usr/local/lib/libwebsockets.so
Thanks in advance.
https://github.com/modelscope/FunASR Support the project?
do you have example for websocket server this project
I receive the following error when loading mod_whisper on a brandnew Freeswitch in Debian 12:
2023-09-19 16:22:48.824133 99.87% [CRIT] switch_loadable_module.c:1754 Error Loading module /usr/local/freeswitch/mod/mod_whisper.so
**/usr/local/freeswitch/mod/mod_whisper.so: undefined symbol: ks_json_add_string_to_object**
I took libks from
https://github.com/signalwire/libks
when i try to make call from the free switch I get these errors in the FreeSWITCH logs.
2024-02-06 13:25:31.678176 74.30% [ERR] websock_glue.c:195 Websocket ASR connection error
2024-02-06 13:25:31.678176 74.30% [CRIT] websock_glue.c:306 Exiting ASR lws_service thread!
EXECUTE [depth=0] sofia/internal/[email protected] log(CRIT Whisper ASR result: )
2024-02-06 13:25:31.678176 74.30% [CRIT] mod_dptools.c:1865 Whisper ASR result:
is there any thing missing in the installation?
When I recompile on freeswitch, it said
make: Nothing to be done for 'all'.
for mod_whisper
Is that normal?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.