Join Nostr
2026-10-01 20:48:02 UTC

THE MARTYR OF BUTLERIAN JIHAD on Nostr: Designing a good audio codec is hard. Designing a stupid one is even harder, and ...

Designing a good audio codec is hard. Designing a stupid one is even harder, and nothing can surpass Matrix people here.

> Under the m.audio_details content block, a new optional field named waveform is added. It is an array of (non-floating) numbers to represent the amplitude of the audio over time. Because floating point numbers are not allowed in Matrix events, integers should be between 0 and 256, inclusive. Though there is no limit to the number of entries in the array, senders should aim to have at least 30 and not more than 120.

We have reached peak webshit, ladies and gentlemen, because there are no applicable alternatives to encoding PCM into JSON arrays. None. Audiophiles can cope and seethe.

I will leave you with a link to this glorious proposal.

https://github.com/matrix-org/matrix-spec-proposals/blob/c4209de8c593a7880842bbe02a3da8b2938ab0d2/proposals/3246-audio-waveform.md