Is there a way to change the audio's speed without changing pitch?

I’m making a playback rate system, and I am experimenting with it because I need the audio to not change pitch

I am no expert but you may wish to check out the Grig Libraries, as Thomas Webb has been very active with Haxe audio stuff.
There’s also a few other audio tools on the Haxelib.