<p>In order to meet basic accessibility standards, I need to have text alternatives to the audio of my online video lectures for my music appreciation class. I have a transcription tool called <a href="https://shop.nuance.com/store/nuanceus/Custom/pbpage.dragon-professional-individual-for-mac6&kpid=PLA_Nuance_Dragon_Prof_Individual_Mac">Dragon Dictate</a> that can do most of the heavy lifting as far as getting a raw transcript of the audio, but the transcription it generates needs a lot of attention in terms of correction, capitalization, and punctuation. It also needs to have all of the text separated into logical paragraphs and it really helps to have proper section headings. </p>

<p>There are 20 lectures in all, and I have finished doing 11 of them, but I still have nine to go and no time to do it. I had an idea to crowdsource this effort by giving extra-credit points to my students for doing little bits of it at a time. They get one extra-credit point for every one minute of lecture that they correct.</p>

<p>I got the idea for this from the <a href="https://www.pgdp.net/c/">Distributed Proofreaders</a> project, where volunteers work to help correct any mistakes that are found in the OCR scans of public-domain books before being posted on a website like <a href="https://www.gutenberg.org/">Project Gutenberg</a>. So far I've gotten about 30 minutes of lecture transcripts corrected by students who needed extra credit, and I have high hopes that we will finish the project either this summer or next fall.</p>

<p>One excellent tool that I found while I was figuring out how to handle this project logistically is the Linux command line tool called <a href="https://mp3splt.sourceforge.net/mp3splt_page/downloads.php">mp3splt</a>. I use this tool to cut the long lecture files up into one-minute segments like so:</p>

<pre>mp3splt -t 1.0.0 L13audio.mp3</pre>

<p>I also wrote my own script that will generate an HTML page with individual audio players for all of these one-minute audio files so that students can very easily choose an audio file to work on that is exactly one minute long. The script also pushes all of the audio files over to my server after creating <code>ogg</code> versions of the mp3s using <a href="https://sourceforge.net/projects/mp3-2-ogg/">mp32ogg</a>.</p>


<pre>#!/bin/bash<br/>

url='https://servername.edu/path/to/filedir'
page=$(pwd)/$(basename $(pwd))_page.html

LESSON=$(ls *.mp3 |head -n1 | sed -e 's/audio.*$//')

cat &gt;&gt; $page &lt;&lt;EOFtop
&lt;h2&gt;&lt;a href=&quot;https://servername.edu/path/to/filedir/$LESSON.html&quot;&gt;RAW TRANSCRIPT HERE&lt;/a&gt;&lt;/h2&gt;
EOFtop

for i in *.mp3; do
  stem=$(basename $i .mp3)
  mp32ogg $i 
  sleep .2
cat &gt;&gt; $page &lt;&lt;EOF

&lt;h3&gt;File: &quot;$i&quot;&lt;/h3&gt;
&lt;div class=&quot;centered&quot;&gt;
	&lt;audio controls&gt;
		&lt;source src=&quot;$url/$stem.mp3&quot; type=&quot;audio/mpeg&quot;&gt;
		&lt;source src=&quot;$url/$stem.ogg&quot; type=&quot;audio/ogg&quot;&gt;
	&lt;/audio&gt;
&lt;/div&gt;
EOF
done

scp *.ogg servername:~/path/to/filedir/
sleep 1
scp *.mp3 servername:~/path/to/filedir/
#sleep 1
scp $page servername:~/path/to/filedir/
</pre>


<h2>Links</h2>

<ul>
	<li><a href="https://www.merriam-webster.com/dictionary/bloviate">Bloviate</a>: to speak or write verbosely and windily&mdash;pundits bloviating on the radio</li>
</ul>
