PulseAudio

For Bluetooth speakers I think this would have been more appropriate.

For running a script check the bottom of this thread
Trying to add off button with script at startup, not working - #6 by rern