Have a look at the elastique pro tape setting in the media pool.you will have to activate musical mode for the audio file in the pool.their is a box just click it to turn on.
Keep in mind the audio file u intend to apply this too should be of the project or you know what bpm it was recorded at.
If it wasn’t recorded in that project enter its correct bpm in the pools file details.because if it has incorrect bpm details the piece of audio will stretch before you do anything your self.
In the tools selector at the top of your project look at the pointer and u will see a little arrow pointing down click their and select sizing applies time stretch.( you may be able to just use this option on its own)
Then if u followed my directions correctly your audio should act like tape if u change project bpm
Just be mindful if u only way to do a small piece of audio and your already using musical mode for time or something which I doubt with u asking this question.
U will need to mixdown the part and re import it and apply the tape mode to that piece instead.