Basic algorithm for overlap and add Time Scale Modification, as described in chapter 3: https://www.audiolabs-erlangen.de/content/05-fau/professor/00-mueller/01-students/2011_DriedgerJonathan_TSM_MasterThesis.pdf
Add as the script as a component, then use the Create method to setup the ConstantPitchTimeScale object, then use the GetModified audio method to get the audio processed audio.