As we mentioned above, the density of an object impacts the speed that sound can travel through it. It is because of this that sound can travel faster in gases that are denser. If we take a look at hydrogen as an example, it is denser than oxygen and therefore allows the sound to travel faster.