How to change pitch without affecting speed?

Hi I am new to Unity development and scripting in particular. I was fooling around with some code examples and noticed a script which records audio through microphone and then plays back the same.

However, I noticed that on increasing-decreasing the pitch value for the AudioSource object the audio clip also speeds up/slows down(along with the desired pitch change). Is there anyway to keep the speed constant but change pitch?

I know this is an old question but I had some struggles finding an answer to this too and I found one, so I thought others might need it. There is a way to change the pitch without changing the speed. Just create an Audio Mixer, on master Add Effect and then add Pitch Shifter then redirect the output through the audio mixer(by adding the mixer to the Audio Source).

basically no, the reason has to do with it would require multiple sampling rates when sampling the audio. How much do you understand about pitch and sampling and audio?