Audio affected by Slow Motion?

Hi, I was wondering, since there is a slow-motion mode in my game… is there a way to have all audio playing at any given time to be slowed down while in slow-mo? It seems that everything except the audio is slowed down, which isn’t very “realistic” so I’m hoping there is a solution.

Thanks in advance.

You can set the speed the audio is played by modifying the pitch value of the AudioSource.
Setting it to anything lower than 1 will be slow, higher than one will be fast.

Read more about AudioSource here:

If you want it to match the game speed, you can attach this speed to the audio sources:

using UnityEngine;

public class AudioSpeedMatcher : MonoBehaviour {
    public void Update() {
        audio.pitch = Time.timeScale;