Skip to content
UniKit

Change audio tempo, keep the pitch

Real 0.25x–4x tempo change with the pitch kept: overlap-add with a 50 ms Hann window rearranges the actual samples, decoded locally, previewable and exported as 16-bit WAV. Browsers have no MP3 encoder here.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Pick an audio file (WAV is parsed here, mp3 / m4a / ogg / flac are decoded by the browser); nothing is uploaded.

Pick an audio file first (or press Record).

Result

Duration, sample rate, peak and size below are the real numbers from this run.

Pick a file and the preview plus download show up here.

What this tool does

  • Speed a 45-minute lecture up to 1.5x for revision — the voice keeps its original pitch
  • Slow a 30-second line down to 0.75x to catch every syllable before writing subtitles
  • Play a meeting recording at 2x first, then go back to normal speed for the parts that matter

Example

Input

tone.wav (8000 Hz mono, 2 s) → factor 2

Output

tone-tempo.wav: 2000 ms → 1000 ms, 16000 → 8000 samples, 16044 B

The frame count is round(16000 ÷ 2) = 8000, so the duration is exactly halved; the OLA window is 50 ms (400 samples at 8000 Hz) with a 200-sample analysis hop and a 400-sample synthesis hop.

Frequently asked questions

How does the pitch stay the same?

Overlap-add: a 50 ms Hann window, an analysis hop of half the window, a synthesis hop of analysis hop × factor, frames summed with a window and then divided by the accumulated window weight. The duration scales by 1/factor while each frame keeps its own sample spacing, so the pitch is unchanged. There is **no** phase alignment (this is not WSOLA), so strongly periodic material like a pure sine can sound slightly comb-filtered; speech and music are fine.

Why is the factor limited to 0.25–4?

Beyond that it is no longer time-stretching but extreme splicing: the synthesis hop becomes far longer than the window, the joins are dense and the artefacts are obvious, so the tool refuses instead of producing something unlistenable. For an 8x tape-style effect use the tape-speed tool, where the pitch moves with the speed.

What is the “normalise the peak” option for?

Overlap-add adds two frames in the overlap region, which can push near-full-scale material above 0 dBFS and hard-clip when encoded to 16-bit WAV. Enabling it scales the result so the peak sits at -1 dBFS (a single constant gain, the waveform shape is untouched). It is off by default so the original level is preserved.

What about the export and uploading?

The export is always 16-bit WAV and the sample rate and channel count follow the source (no resampling): browsers have MP3 / AAC decoders but no encoder, so no MP3. Tempo change, preview and encoding all run locally with no network request.

Keywords:wavaudio tempotime stretch

Related tools