Open jneuendorf-i4h opened 11 months ago
Didn't get this error on our server, may be you can try completely removing the n or initialize it with a non-zero value i..e int n=1;
Didn't get this error on our server, may be you can try completely removing the n or initialize it with a non-zero value i..e int n=1;
Thanks for the quick reply. Initializing n = 1
worked. 👍
Btw, was this module designed with a particular Whisper websocket server in mind? I couldn't find one that fits this module out of the box. If not, could you clarify the protocol (what message types are there and in which order are they sent?)
Thank you 🙏 😊
It's not written for any particular websocket server, you can simply send audio bytes to a websocket listener and return the output as literal json string, for TTS you send a json string and return audio bytes from the websocket server
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):What would be a reasonable initial value of
n
?Setting
int n = 1;
would work in case the context is never empty whencontext->started == WS_STATE_STARTED
. 🤷♂️From this example it seems that
n
represents the payload size (length ofcontext->result_text
?).