Seismic waves are waves that travel through the Earth or other elastic body
2 to 8 kilometers
The primary factor is the composition of the rock that the wave travels through. Secondarily, temperature tends to lower the wave speed and pressure tends to increase the wave speed.