Well, I didn't request this. I am confused how it is almost identical to my post. I asked for MIDI in mine because I knew that had the potential to be super simple.
For PCM audo one could just skip so many or compute an average of n samples. This will increase the speed and the pitch. A method that leaves pitch as is but speeds up the audio is more complicated though.