Switch audio output

All,

I’m wondering how to switch audio output HMDI<->Audio Jack using web commands…

For example would it be possible to execute something like

wget -qO- http://localhost:3000/api/v1/commands/?cmd=audioout?audio=hdmi

?

Many thanks in advance.