Speed of an audio

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By leonardo

Is there any way to alter the playback speed of an audio or can it be supported for next versions?

:bust_in_silhouette: Reply From: Freeman

As far as I know, there is no build-in easy option to manipulate the speed of audio playing in Godot right now. It could be possible to manipulate set_mix_rate property of AudioStreamSample in code, so it would influence the pitch and speed of audio, but I can imagine it’s not exactly what you are looking for.

:bust_in_silhouette: Reply From: Dlean Jeans

The playback speed of an audio is the Pitch Scale or pitch_scale in AudioStreamPlayer
Changing the playback speed means also changing the pitch:

  • Speeding up = Higher pitch (chipmunk-like)
  • Slowing down = Lower pitch (demon-like)

To counter this, you may wanna add a Pitch Shift effect to your audio bus.