You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>The requirements have been determined by compiling the project with an ESP32. The values are rounded up! <br/>
110
119
</p>
111
-
<h1><aclass="anchor" id="autotoc_md5"></a>
120
+
<h1><aclass="anchor" id="autotoc_md6"></a>
112
121
License</h1>
113
122
<p>The software is a reverse-engineered version of a commercial software published more than 30 years ago. The current copyright holder is SoftVoice, Inc. (www.text2speech.com)</p>
114
123
<p>Any attempt to contact the company failed. The website was last updated in the year 2009. The status of the original software can therefore best described as Abandonware (<ahref="http://en.wikipedia.org/wiki/Abandonware">http://en.wikipedia.org/wiki/Abandonware</a>)</p>
<p>Sam is a very small Text-To-Speech (TTS) program written in C, that runs on most popular platforms. It is an adaption to C of the speech software <aclass="el" href="class_s_a_m.html" title="Arduino API for SAM Text to Speach Engine.">SAM</a> (Software Automatic Mouth) for the Commodore C64 published in the year 1982 by Don't Ask Software (now SoftVoice, Inc.). It includes a Text-To-Phoneme converter called reciter and a Phoneme-To-Speech routine for the final output. It is so small that it will work also on embedded computers. On my computer it takes less than 39KB (much smaller on embedded devices as the executable-overhead is not necessary) of disk space and is a fully stand alone program. For immediate output it uses the SDL-library, otherwise it can save .wav files.</p>
72
72
<p>An online version and executables for Windows can be found on the web site: <ahref="http://simulationcorner.net/index.php?page=sam">http://simulationcorner.net/index.php?page=sam</a></p>
73
-
<h1><aclass="anchor" id="autotoc_md7"></a>
73
+
<h1><aclass="anchor" id="autotoc_md8"></a>
74
74
Compile</h1>
75
75
<p>Simply type "make" in your command prompt. In order to compile without SDL remove the SDL statements from the CFLAGS and LFLAGS variables in the file "Makefile".</p>
76
76
<p>It should compile on every UNIX-like operating system. For Windows you need Cygwin or MinGW( + libsdl).</p>
</pre><p>It can even sing look at the file "sing" for a small example.</p>
92
92
<p>For the phoneme input table look in the Wiki.</p>
93
93
<p>A description of additional features can be found in the original manual at <ahref="http://www.retrobits.net/atari/sam.shtml">http://www.retrobits.net/atari/sam.shtml</a> or in the manual of the equivalent Apple II program <ahref="http://www.apple-iigs.info/newdoc/sam.pdf">http://www.apple-iigs.info/newdoc/sam.pdf</a></p>
94
-
<h1><aclass="anchor" id="autotoc_md9"></a>
94
+
<h1><aclass="anchor" id="autotoc_md10"></a>
95
95
Adaption To C</h1>
96
96
<p>This program was converted semi-automatic into C by converting each assembler opcode. e. g. </p><preclass="fragment">lda 56 => A = mem[56];
</pre><p> Then it was manually rewritten to remove most of the jumps and register variables in the code and rename the variables to proper names. Most of the description below is a result of this rewriting process.</p>
102
102
<p>Unfortunately its still a not very good readable. But you should see where I started :)</p>
103
-
<h1><aclass="anchor" id="autotoc_md10"></a>
103
+
<h1><aclass="anchor" id="autotoc_md11"></a>
104
104
Short description</h1>
105
105
<p>First of all I will limit myself here to a very coarse description. There are very many exceptions defined in the source code that I will not explain. Also a lot of code is unknown for me e. g. Code47503. For a complete understanding of the code I need more time and especially more eyes have a look on the code.</p>
106
-
<h2><aclass="anchor" id="autotoc_md11"></a>
106
+
<h2><aclass="anchor" id="autotoc_md12"></a>
107
107
Reciter</h2>
108
108
<p>It changes the english text to phonemes by a ruleset shown in the wiki.</p>
109
109
<p>The rule " ANT(I)", "AY", means that if he find an "I" with previous letters " ANT", exchange the I by the phoneme "AY".</p>
110
110
<p>There are some special signs in this rules like # & @ ^</p><ul>
111
111
<li>: % which can mean e. g. that there must be a vocal or a consonant or something else.</li>
112
112
</ul>
113
113
<p>With the -debug option you will get the corresponding rules and the resulting phonemes.</p>
<p>The wiki shows all possible phonemes and some flag fields. <br/>
123
123
The final content of these tables can be seen with the -debug command.</p>
124
124
<p>In the function PrepareOutput() these tables are partly copied into the small tables: phonemeindexOutput[] stressOutput[] phonemelengthOutput[] for output.</p>
125
-
<h2><aclass="anchor" id="autotoc_md13"></a>
125
+
<h2><aclass="anchor" id="autotoc_md14"></a>
126
126
Final Output</h2>
127
127
<p>Except of some special phonemes the output is build by a linear combination: </p><preclass="fragment">A = A1 * sin ( f1 * t ) +
</pre><p>The rest is handled in a special way. At the moment I cannot figure out in which way. But it seems that it uses some noise (e. g. for "s") using a table with random values.</p>
162
-
<h1><aclass="anchor" id="autotoc_md14"></a>
162
+
<h1><aclass="anchor" id="autotoc_md15"></a>
163
163
License</h1>
164
164
<p>The software is a reverse-engineered version of a commercial software published more than 30 years ago. The current copyright holder is SoftVoice, Inc. (www.text2speech.com)</p>
165
165
<p>Any attempt to contact the company failed. The website was last updated in the year 2009. The status of the original software can therefore best described as Abandonware (<ahref="http://en.wikipedia.org/wiki/Abandonware">http://en.wikipedia.org/wiki/Abandonware</a>)</p>
166
166
<p>As long this is the case I cannot put my code under any specific open source software license Use it at your own risk.</p>
167
-
<h1><aclass="anchor" id="autotoc_md15"></a>
167
+
<h1><aclass="anchor" id="autotoc_md16"></a>
168
168
Contact</h1>
169
169
<p>If you have questions don' t hesitate to ask me. If you discovered some new knowledge about the code please mail me.</p>
0 commit comments