Read output from pacmd list
and squish it into json. Happens to work on Ubuntu 20.04, but may well not work with anything else or indeed other configurations.
node pacmd_list_json.js
https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/812
- https://gist.github.com/zyga/5534776 - didn't work for me.
- Now fixed https://gist.github.com/zyga/5534776#gistcomment-3742655