L
L
LionG2021-07-19 19:31:38
Node.js
LionG, 2021-07-19 19:31:38

How to combine audio streams in realtime mode on a node?

I'm trying to create something like "internet radio".
Users should receive 1 stream, and the server on the node should merge the streams from the array.
The array can contain, for example, 1) a stream from an audio file (music), 2) a stream from a microphone, 3) a stream from another file (for example, an applause effect). And at any time, any of the streams can be deleted (interrupt the music) or another one can be added (stream from the micro 2nd interlocutor).

Found a lot of examples but they all mostly use ffmpeg and work only with files which in this task will give extreme latency + extra disk IO. Or can write this service in some other language where it is easier to implement?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question