Skip to content

Instantly share code, notes, and snippets.

@cr2007
Created July 9, 2023 12:58
Show Gist options
  • Save cr2007/f6869e769417165efba22feccf313b11 to your computer and use it in GitHub Desktop.
Save cr2007/f6869e769417165efba22feccf313b11 to your computer and use it in GitHub Desktop.
Extracting Microsoft Stream Transcripts
// Credit: https://www.rushworth.us/lisa/?p=6854
var objTranscriptionLines = window.angular.element(window.document.querySelectorAll('.transcript-list')).scope().$ctrl.transcriptLines;
var strRunningText = "";
for(var i = 0; i < objTranscriptionLines.length; i++){
if( objTranscriptionLines[i] ){
var strLineText = objTranscriptionLines[i].eventData.text;
strRunningText = strRunningText + "\n" + strLineText;
}
}
console.log(strRunningText);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment