SAN FRANCISCO — Apple has bought Shazam, the maker of a song-recognition app that Apple’s digital assistant Siri has already been using to help people identify...