Yes, when a sound wave travels from one medium to another, its frequency and wavelength can change. This phenomenon is known as the refraction of sound.
Refraction occurs because sound waves travel at different speeds in different media. The speed of sound depends on the properties of the medium, such as its density, elasticity, and temperature. When a sound wave encounters a change in the medium, such as moving from air to water or from one type of solid to another, its speed can change, leading to a change in frequency and wavelength.
The relationship between the frequency, wavelength, and speed of a wave is given by the equation:
v = f * λ
where: v is the velocity or speed of the wave, f is the frequency of the wave, and λ is the wavelength of the wave.
If the speed of sound changes as it moves from one medium to another, and the frequency remains constant, the wavelength will change accordingly. If the speed of sound increases, the wavelength will increase, and if the speed of sound decreases, the wavelength will decrease.
It's worth noting that the change in frequency and wavelength of sound waves during refraction is different from the phenomenon of Doppler effect, which occurs when there is relative motion between the source of the sound and the observer. Refraction, on the other hand, is solely dependent on the change in the medium through which the sound wave is traveling.