YouTube, the world’s largest digital repository of streaming media, will launch a subscription music service later this year.