sox
, node
On Ubuntu/Debian:
sudo apt install sox nodejs
On macOS:
brew install sox nodejs
npm i
node server.mjs
The client can be another linux or macOS machine.
** WARNING! lower down your volume before running the example since it will produce echo **
node client.mjs
If you want to stream the audio to another device (e.g a raspberry pi intercom system) you can filter by meta.id
on client.on('stream', (stream, meta) => ...)
@vuk2295 I just updated the example. It's from an old raspberry pi project, and it's very inefficient since it uses uncompressed raw audio.
@epic80 I never saw this comment until github notified me about @vuk2295 one, sorry about that 😓. This still works with the latest version of node. I don't remember if I ever made a repo for this.