Apple announced the HomePod, a smart speaker that will likely spell competition for the Amazon Echo and Google Home.