The speed of sound is directly proportional to the density of the material through which it travels, with the speed being faster in more dense materials. For example, the speed of sound in air is 343 m/s, but the speed of sound in water, a more dense substance, is 1,463 m/s.