If the wave is a mechanical one, then the mechanical characteristics
of the medium ... like its density, and viscosity ... determine the speed
of the wave.
If the wave is an electromagnetic one, then the electrical characteristics
of the medium ... like its electrostatic permittivity and its magnetic
permeability ... determine the speed of the wave.