<p>notes:<br />
<a href="https://en.wikipedia.org/wiki/Intel_HEX"
class="uri">https://en.wikipedia.org/wiki/Intel_HEX</a></p>
<p>an example intel hex file with 1 record containing 3 data bytes (02h
33h 7ah) and an end of file marker:</p>
<pre><code>:03|0030|00|02337A|1E
:00000001FF</code></pre>
<p>espeak incantation:</p>
<pre><code>espeak-ng -v mb-us3 -s 163 -p 38 -f intel-hex.org -w intel-hex.wav</code></pre>
<p>script:<br />
Hello Hacker Public Radio, Brian in Ohio here. I am out from under my
rock and this episode is about an old file format that despite its age
is still in use in many places today.</p>
<p>That format is the Intel Hex format. What is this format? Glad you
asked.</p>
<p>From the book of knowledge we read,</p>
<p>Intel hexadecimal object file format, Intel hex format or Intellec
Hex is a file format that conveys binary information in ASCII text
form.</p>
<p>If you have ever programmed an arduino board the file that is used to
program the board.</p>
<p>The file generated by the arduino eye dee eee is an intel hex
file.</p>
<p>The format consists of any number of lines, called records.</p>
<p>Intel HEX consists of lines of ASCII text that are separated by line
feed or carriage return characters or both.</p>
<p>Each text line contains uppercase hexadecimal characters that encode
multiple binary numbers.</p>
<p>The binary numbers may represent data, memory addresses, or other
values, depending on their position in the line and the type and length
of the line.</p>
<p>Each text line is called a record.</p>
<p>A record consists of six fields that appear in order from left to
right</p>
<ol type="1">
<li>Start code, one character, an ASCII colon.</li>
<li>Byte count, indicating the number of bytes in the data field.</li>
<li>Address, four hex digits, representing the 16-bit beginning memory
address offset of the data.</li>
<li>Record type two hex digits, 00 to 05, defining the meaning of the
data field.</li>
<li>Data, a sequence of bytes of data</li>
<li>Checksum, a computed value that can be used to verify the record has
no errors.</li>
</ol>
<p>An end of file record must occur exactly once per file in the last
record of the file. The byte count is 00, the address field is typically
0000 and the data field is omitted.</p>
<p>A record's checksum byte is the two's complement of the least
significant byte of the sum of all decoded byte values in the record
preceding the checksum.</p>
<p>It is computed by summing the decoded byte values and extracting the
least significant byte of the sum, and then calculating the two's
complement of the sum, by inverting its bits and adding one.</p>
<p>I have included in the show notes an example of a record with pipes
used to break up the line.</p>
<p>Hope you enjoyed the espeak episode.</p>
<p>There are so many ways to produce shows, there is no excuse not
to!</p>
<p>This is Brian in Ohio signing off reminding everyone.</p>
<p>We are all creatures of ego.</p>
