Any way to change Audio Sample Rate (Hz) in audio settings?

Hey all,

Unreal has a bunch of non-destructive features when it comes to lowering quality of assets for smaller packages. For example, I can force a mip of a texture and have it package at that size, but I can always come back and raise it later without having to back up and re-import any external assets. Very nice for handling games that are release on multiple platforms like PC and Mobile

I was wondering if this was possible to do something similar to the sample rate for audio? Could I lower the sample rate of my audio from 44100 Hz to 22050 Hz to package for mobile to get the size down, and then move it back up for the PC build?

I can do it manually by lowering them all externally by hand, backing up the high res versions, and then re-importing for every audio asset I have. It will take forever, so I just wanted to make sure this is my only option before going for it.

You can set platform-specific audio sample rates in the project settings.

Go to Project Settings->Platforms->[YouDesiredPlatform]->Audio->Audio Mixer Sample Rate.

Hi there, thanks for the reply!

I made a quick project and threw in around 40 sounds (and made them play in order on begin play just to confirm they are actually packaging.)

I did an android and windows build at 44500 sample rate in the project settings, and one at 8000 (extreme example) and they are the same size.

Also, I play tested the 8000 hz windows build (can’t deploy to android at the moment) and the sound is very obviously not at 8000hz; the audio is still nice and crisp

That is very weird. The sample rate change was working for me when I used it for Oculus Quest builds. I will try to dig around more and see what I can find. In the meantime, if you are able to solve this issue, do post it here!

So the problem got worse, adjusting the sample rate on 4.23 now raises the pitch of the audio? Very weird

I can confirm the pitch issue, both a higher and lower pitch. This also happens in 4.22. I came across this when trying to upgrade my project from 4.21 to 4.22 and also 4.23. Setting the sample rate to 48000 is what fixed it in my case. I don’t know why this affects pitch.

Yeah. The problem is that it affects pitch, and also doesn’t actually lower the sample rate, resulting in a smaller package size.

So now, not only does it not do what is advertised, it also now just messes up the audios pitch.

I just want to lower the audio sample rate without resorting to changing them all manually one by one

Hello, all. I want to chime in to add information. Changing the sampling rate in Unreal is not the same as performing a sampling rate conversion. For example, if you have an audio file that was recorded at 44.1 kHz and play it back in a system that uses 48 kHz, it will pull up the audio to play at that selected rate. That will affect pitch and duration. The reverse is also true. If you don’t want that to happen, either perform a sampling rate conversion on the file in question before importing it, or record the file at the destination sampling rate in the first place.

If you can prepare your audio assets at the destination sampling rate, that’s preferable over a sampling rate conversion, which although not catastrophic, affects sound quality by a small amount (although far less than Vorbis compression).


Also: when you change the pitch of an audio file in the usual way in Unreal, you are altering the sample playback rate. That’s how it works. It’s also the reason you get a formant shift accompanying it. If you need to manipulate pitch independently from a clip’s duration and/or formants, you’ll need to use software like Melodyne, Little Altar Boy, etc.