Unity Audio Pitch Too Fast or Chipmunk Sound Effect
Fix engine audio screeching or accelerating into ultra high frequencies when car or aircraft speeds increase.
⚠️ Severity: Low/Medium🔊 Audio Tuning⏱️ 3 Min Fix
The Math Solution: Normalized Lerp & Clamp
Never assign raw speed directly into pitch (e.g. pitch = speed * 0.1f). Instead, normalize speed against your vehicle's max speed with Mathf.Clamp01(), and interpolate between safe acoustic limits (e.g. 0.6f idle to 2.0f redline).
1
Clamped Pitch Calculation Script
SafeEnginePitch.cs (C#)
using UnityEngine;
public class SafeEnginePitch : MonoBehaviour
{
[SerializeField] private AudioSource engineSource;
[SerializeField] private Rigidbody carRb;
[SerializeField] private float topSpeed = 45f; // m/s (162 km/h)
private const float MIN_PITCH = 0.65f;
private const float MAX_PITCH = 1.95f; // Hard ceiling prevents chipmunk distortion
private void Update()
{
if (engineSource == null || carRb == null) return;
// 1. Calculate normalized ratio between 0.0 and 1.0
float speedRatio = Mathf.Clamp01(carRb.linearVelocity.magnitude / topSpeed);
// 2. Interpolate safely
float targetPitch = Mathf.Lerp(MIN_PITCH, MAX_PITCH, speedRatio);
// 3. Smooth with delta time
engineSource.pitch = Mathf.MoveTowards(engineSource.pitch, targetPitch, 2.5f * Time.deltaTime);
}
}
Fixing Chipmunk Pitch & High-Speed Audio Playback in Unity
When an AudioSource plays sound effects or voice lines at double speed with high-pitched "chipmunk" distortion, the cause is almost universally a sample rate mismatch between the imported WAV/MP3 asset (e.g. 48,000 Hz or 44,100 Hz) and Unity's system Audio DSP configuration, or an unintended modification of the pitch property.
Audio Project Settings Inspection
Audio Project Settings: Open Edit → Project Settings → Audio. Verify that System Sample Rate matches your target device hardware (standard is 48000 Hz on modern PCs and mobile devices).
Import Settings: Select the audio clip in the Project window. In the Inspector, check Sample Rate Setting. If set to Override Sample Rate, ensure the frequency matches the source recording. Setting it to Preserve Sample Rate is recommended.
Doppler Effect Distortion: If the sound is attached to a rapidly accelerating object (like a jet fighter), Unity's AudioSource Doppler Level will dramatically pitch-shift the audio up as the jet approaches the AudioListener camera. Reduce Doppler Level to 0.1 or 0 to eliminate unwanted pitch shifts.