Sound is a vibration that travels through an elastic medium as a wave. The speed of sound describes how much distance such a wave travels in a certain amount of time. In dry air at 20 °C (68 °F), the speed of sound is 343 meters per second (1,125 ft/s). This equates to 1,236 kilometers per hour (768 mph) or about one mile in five seconds. This figure for air (or any given gas) increases with gas temperature (equations are given below), but is nearly independent of pressure or density for a given gas. For different gases, the speed of sound is dependent on the mean molecular weight of the gas, and to a lesser extent upon the ways in which the molecules of the gas can store heat energy from compression (since sound in gases is a type of compression).
Although “the speed of sound” is commonly used to refer specifically to the speed of sound waves in air, the speed of sound can be measured in virtually any substance. Sound travels faster in liquids and non-porous solids than it does in air, traveling about 4.4 times faster in water than air.
Additionally, in solids, there occurs the possibility of two different types of sound waves: one type is associated with compression (the same as usual sound waves in fluids) and the other is associated with shear-stresses, which cannot occur in fluids. These two types of waves have different speeds, and (for example in an earthquake) may thus be initiated at the same time but arrive at distant points at appreciably different times. The speed of compression-type waves in all media is set by the medium’s compressibility and density, and the speed of shear-waves in solids is set by the material’s rigidity and density.
Finally, there are certain other types of very unusual waves of compression that occur only in very unusual media, such as the so-called “second sound” (an unusual heat transmission) which occurs only in superfluid liquid helium. 
 Wikipedia – Speed of Sound (click here to view original reference)