@dragontattoo this is really unrelated to the MagicMirror software…
you need a bluetooth device in the hardware, and then connect the bluetooth speaker… same as for your phone.
i think the pi has bluetooth
see this
https://lifehacker.com/everything-you-need-to-set-up-bluetooth-on-the-raspberr-1768482065