formatTranscript function

Gets transcript(s) in a given format