This was solved with the following code:
var componentDescription = AudioComponentDescription()
componentDescription.componentType = kAudioUnitType_FormatConverter
componentDescription.componentSubType = kAudioUnitSubType_TimePitch
let rf = AVAudioUnitTimePitch(audioComponentDescription:componentDescription)