How to change the speed of an audio without affecting its pitch and vice a versa at runtime?

Hi all, I want an explicit control over both the speed and the pitch of an audio. The problem is when we change the pitch of an Audio Source via code(AudioSource.pitch) both speed and the pitch get affected.

I am aware that the pitch shifter audio effect with unity Audio Mixer is capable of controlling the pitch of the audio without affecting the speed. So how to go about changing the speed without affecting the pitch?

Researched the following links but no luck:

http://forum.unity3d.com/threads/change-audio-speed-not-pitch.327492/?_ga=1.212816468.1356363857.1466508342

Please help.

did you find any answer?

2 Answers

2

Have the same question!

I didn't find any solution to this until now. As a work around, I used n number of audio files which had different pitch. For me the audio was a simple beep having length of 0.3 sec, so I used InvokeRepeating() to control the speed at which the audio is played keeping Loop = false.