Google Inc. is buying startup Songza Media Inc., bolstering its music services as it tries to draw users away from rival Apple Inc.