When a wifi speaker’s power supply breaks and the official replacement is stupidly expensive you can probably find a replacement for the replacement on Amazon.
When Apple first introduced the MagSafe power adapter connector it felt like a big step forward in an area no other company was making improvements in. MagSafe used magnetism to couple the power adapter connector to the notebook. Other manufacturers still used mechanical couplings, which were prone to crashing your notebook to the floor if you or your pet or your Roomba managed to get snagged in the power cord. With MagSafe the cord would easily detach from the computer. Otherwise it stayed firmly in place.