The elasticity and density of the medium through which sound travels determine its speed. In liquids, sound travels faster than in gases, and in solids, sound travels faster than in liquids. Sound travels quicker in a medium with higher flexibility and lower density.