The speed of a wave alters when the wave comes into contact with a different medium.
When a wave transitions from one medium to another (for example, from water to air), it can change speed depending on the properties of the new medium, such as density and elasticity. The other options do not typically affect the speed of a wave directly in the same way.