gillesdemey / node-record-lpcm16

:microphone: Records a 16-bit signed-integer linear pulse modulation code encoded audio file.
ISC License
212 stars 59 forks source link

How would I send the data recorded to some other API using socket.io-client? #64

Open dmdum opened 2 years ago

dmdum commented 2 years ago

In the documentation, there's an option to send the audio to wit.ai. I wanted to emit the audio somewhere else using socket.io-client. Is there a way I could do that?

dmdum commented 2 years ago

Sorry to blatantly tag you on this @gillesdemey but would you be able to help me with this?

PeterHaughie commented 2 years ago

I'm building something with socket.io-client and this library at the moment. For what it's worth I'd suggest converting your output file to base64 and then sending that to a state in your socket server to pass around as you need.