How can change frequency of audio file

So, i am trying to use Interpolation. But still not succeed to change sample rate. I have also check some examples. I am sharing one link which also used.

I also uploaded some lines of code which I modified to change sample rate.