Satellite radio company Sirius XM Holdings, whose subscription service is offered by most automakers in the US, is to buy online music service Pandora Media in a US$3.5bn all-share deal that observers said would help it battle growing competition from streaming rivals Spotify and Apple Music.