sepia-stt-server icon indicating copy to clipboard operation
sepia-stt-server copied to clipboard

nodejs client example?

Open FerLuisxd opened this issue 1 year ago • 1 comments

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

FerLuisxd avatar Dec 14 '22 05:12 FerLuisxd

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.

fquirin avatar Dec 14 '22 12:12 fquirin