# Change speed sound Fmod in Unity runtime.

**URL:** https://qa.fmod.com/t/change-speed-sound-fmod-in-unity-runtime/13985
**Category:** Unity
**Created:** [July 6, 2018, 4:02am UTC](https://qa.fmod.com/t/change-speed-sound-fmod-in-unity-runtime/13985 "2018-07-06T04:02:01Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![moontalker](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@moontalker](https://qa.fmod.com/u/moontalker)
#### Post date: [July 6, 2018, 4:02am UTC](https://qa.fmod.com/t/change-speed-sound-fmod-in-unity-runtime/13985/1 "2018-07-06T04:02:01Z")

</div>

Hello! I create FMOD.Sound by using AudioClip in Unity. How I can change speed of this sound in runtime. I tried to use setMusicSpeed but it’s not effective.

---

<div class="post-metadata">

### Author: ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)
#### Post date: [July 9, 2018, 1:38am UTC](https://qa.fmod.com/t/change-speed-sound-fmod-in-unity-runtime/13985/2 "2018-07-09T01:38:52Z")

</div>

Hi Trung,

You can use setPitch() on the FMOD::Channel that the FMOD::Sound is using. You should have this Channel already when creating the FMOD::Sound.

[https://www.fmod.com/resources/documentation-api?page=content/generated/FMOD\_Channel\_SetPitch.html#/](https://www.fmod.com/resources/documentation-api?page=content/generated/FMOD_Channel_SetPitch.html#/)

Thanks,  
Richard

---

<div class="post-metadata">

### Author: ![moontalker](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@moontalker](https://qa.fmod.com/u/moontalker)
#### Post date: [July 9, 2018, 10:34am UTC](https://qa.fmod.com/t/change-speed-sound-fmod-in-unity-runtime/13985/3 "2018-07-09T10:34:22Z")

</div>

> [@](#):
>
> Hi Trung,
> 
> You can use setPitch() on the FMOD::Channel that the FMOD::Sound is using. You should have this Channel already when creating the FMOD::Sound.
> 
> [https://www.fmod.com/resources/documentation-api?page=content/generated/FMOD\_Channel\_SetPitch.html#/](https://www.fmod.com/resources/documentation-api?page=content/generated/FMOD_Channel_SetPitch.html#/)
> 
> Thanks,  
> Richard

Thanks Richard,  
I tried this solution but this make sound got deformation. Has any solution didn’t make sound deformation?

---

<div class="post-metadata">

### Author: ![richard\_simms](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/richard_simms/32/261_2.png) [@richard\_simms](https://qa.fmod.com/u/richard_simms)
#### Post date: [July 10, 2018, 1:44am UTC](https://qa.fmod.com/t/change-speed-sound-fmod-in-unity-runtime/13985/4 "2018-07-10T01:44:02Z")

</div>

Hi Trung,

If you are looking for a method of increasing the playback rate without affecting the pitch then we unfortunately do not support this.

You can use the Pitch Shifter DSP to compensate the changes in pitch however this method is very expensive on resources and may not sound the best quality.

Thanks,  
Richard
