To get the transcripts I got them in the MS Stream website. The transcript was extracted when inspecting the file downloads in the network tab. You need to filter the network tab to list the paths that contain "transcript" and select the largest one. The response will contain the JSON which was copied to this directory in the form of transcript.MMMDD.json
.
Make sure you have Node.JS in path and then run the script:
node convertTranscript.js