I've done alot of searching to try and find a way to achieve this but the solutions I've found either don't do what I need or I don't understand them.
I'm looking for a way of playing a sound in python (non-blocking) that allows me to change the playback speed in real time, as it's playing, with no gaps or cutouts.
Changing the pitch is fine. Audio quality isn't even that important.
Most of the solutions I've found only allow setting the playback speed once, before the file is played.