The frequency of the same wave is always the same.
However, the speed of wave travel in different material is different.

The refraction index of light in a material is defined as speed of light $c$ divide by light speed in that material $v$, i.e. $n=\frac{c}{v}$