Transcript processing function and app


On this page:

Introduction

After I recorded some tutorials for students on MS Stream, I had to download the transcript. The transcript looked as shown below:

As shown on MS streamAs downloaded
transcript exampletranscript example 2

Code

At the time, I didn’t know there is an online tool able to remove the additional text, so I wrote a bit of code. Later, I added a graphical user interface. You can get the app and function code in the table below:

TypeDescriptionRequirementsLinkInstructions
MATLAB appA MATLAB app with a graphical user interfaceNo coding or MATLAB background requirements. See the documentation below for details on how to install and run the appDownload appHow to install and use the app
MATLAB functionA MATLAB function for those who prefer code. The function has identical functionality to the appMinimal coding requirements, see below for detailsDownload functionHow to use the function

Function code:

function  processTranscript(path,inputfile,outputfile)

cd(path) % Find the path
a = readlines(inputfile); % get the transcript
if strncmpi(a(12),'00',2) == 1 % determine the starting point and the step
    start=12;
    step=6;
else
    start=11;
    step=5;
end
a(1:start) = [];
b = a(1:step:end); % Keep every "stept"th line
ff = fopen(outputfile,'w'); % Create the file
fprintf(ff,'%s \n',b); % Write the file

Instructions

How to download and install the app

MATLAB app

How to use the function