News for hackers. Stuff that matters.
Re:JackTrip WebRTC: high quality, uncompressed, low-delay au... by zaroth on Thursday January 28, 2021 @12:14PM (#25945067)
Truly is it uncompressed PCM WAV audio? In that case 44kHz 16-bit 1-channel is 705 kbps.

Are there not any good nonproprietary lossless low latency audio codecs? A brief look at Wikipedia shows a couple that are 5ms or lower, but either they are proprietary or they are low bitrate.

Re:JackTrip WebRTC: high quality, uncompressed, low-delay au... by tleb_ on Thursday January 28, 2021 @12:41PM (#25945452)
Re:JackTrip WebRTC: high quality, uncompressed, low-delay au... by staticfloat on Thursday January 28, 2021 @12:49PM (#25945640)
You pay a price for the super-small frame sizes; much worse compression ratios. Frame sizes smaller than 10ms disable the LPC and hybrid coding modes, which are quite advantageous. [0]

In my experiments with transmitting realtime audio signals using Opus, 10ms frame sizes are acceptable for 1-way synchronicity (e.g. if you want the user to perform an action and hear the result as simultaneous with the action) but it's definitely the upper bound. From what I remember my signal processing professor say, the threshold to try and hit is 7ms total latency for truly undetectable processing, but I can't find a reference for that, so take it with a grain of salt.

[0] https://www.opus-codec.org/docs/html_api/group__opusencoder....

Re:JackTrip WebRTC: high quality, uncompressed, low-delay au... by jarmitage on Thursday January 28, 2021 @12:59PM (#25945878)
See for example:

Robert H. Jack, Tony Stockman, and Andrew McPherson. 2016. Effect of latency on performer interaction and subjective quality assessment of a digital musical instrument. In Proceedings of the Audio Mostly 2016 (AM '16). Association for Computing Machinery, New York, NY, USA, 116–123. DOI: https://doi.org/10.1145/2986416.2986428

https://scholar.google.com/scholar?cluster=13472622195552899...

Re:JackTrip WebRTC: high quality, uncompressed, low-delay au... by declnz on Thursday January 28, 2021 @01:12PM (#25946134)
Jamulus uses Opus for this reason (balance with quality) AIUI
Re:JackTrip WebRTC: high quality, uncompressed, low-delay au... by spacechild1 on Thursday January 28, 2021 @03:34PM (#25948721)
As do SoundJack, SonoBus and probably many other similar apps.
Re:JackTrip WebRTC: high quality, uncompressed, low-delay au... by wmleler on Sunday January 31, 2021 @10:08PM (#25985094)
The JackTrip Virtual Studio uses an inexpensive Raspberry Pi, and connects a low latency hardware codec directly into the Pi's bus, to achieve a latency of 1mS. At that level, the only other latency you have to worry about is the speed of light (through the internet). I've just published an article about the Virtual Studio at https://wmleler1.medium.com/setting-up-your-virtual-studio-6...