The speed of sound in a solid medium depends on :
Speed of sound depends on temperature, density and elasticity of the medium.
Speed of sound in compressible medium depends on pressure in the medium (Consider gaseous medium).