Coder Social home page Coder Social logo

mod_whisper's Issues

make error

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?).

Cannot find ${FREESWITCH_SOURCE_ROOT}/modules.conf

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:

  1. build/modules.conf.most
  2. build/modules.conf.in

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. ๐Ÿ˜…

load module error

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.

Module load error

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

web socket connection issue

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.