SEPIA-Framework / sepia-stt-server

SEPIA server to support open-source speech recognition via WebSocket connection.
MIT License
121 stars 22 forks source link

nodejs client example? #21

Open FerLuisxd opened 1 year ago

FerLuisxd commented 1 year ago

I found there is a python client example to be used on the backend but what about a nodejs one? I would like to be able to send an audio buffer to the server and get a response

fquirin commented 1 year ago

Hi @FerLuisxd ,

do you handle recording and (optionally) resampling already? Because I don't know how that works in Node.js, but large parts of the SEPIA web-audio lib should still be compatible. Maybe we can pick some parts and put it together for Node.js.

The most important parts are the sepia-stt-socket-client as server interface and the stt-socket-worker that handles the logic like buffering and streaming to the server. Since the worker is part of the web-audio lib, it might be possible to simplify it for stand-alone usage with Node.js.