<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>SmallBASIC Draft - Speech Synthesizer</title>
<link rel="stylesheet" href="../style/draft.css">
</head>
<body>
<!-- HEADER -->
<div class="head">
<h1>Speech Synthesis</h1>
<dl>
<dt>Version
<dd>2 - 30 Aug 2003
<dt>Authors:
<dd>Nicholas Christopoulos
</dl>
<p class="copyright">Copyright ©2001-2003 SmallBASIC Project</p>
</div>
<!-- ABSTRACT -->
<div class="abstract">
<h2>Abstract</h2>
<p>This paper are a purpose for integrate a speach synthesizer to
<acronym title="SmallBASIC">SB</acronym>
</div>
<!-- BODY -->
<h2>Introduction</h2>
<p>
There are several
<acronym title="GNU's General Public Licence">GPL</acronym>
/
<acronym title="Public Domain">PD</acronym>
speech synthesizer engines.
<acronym title="SmallBASIC">SB</acronym>
can include one of those engines to produce speech.
<h2>Interface</h2>
Integrate speach engine to SB.
<!-- command -->
<h3>Dictionaries</h3>
<pre class="syntax">
OPTION PREDEF SPDICT language-dictionary
</pre>
<p>
This declaration, it must be used to redefine the default phonetic-dictionary.
The default, if we can't determinate it from locale, it is the English one.
<!-- command -->
<h3>Words to phonems</h3>
<pre class="syntax">
retstr = SPGET(lingtext [, dict])
</pre>
<p>
The SPGET function returns the speach pattern that corresponds to lingtext.
<!-- command -->
<h3>Sound phonems</h3>
<pre class="syntax">
SPOUT text [{;|,} text [...]]
</pre>
<p>
The SPOUT command causes the computer to speak the parameters.
The parameters are results of SPGET() function (that means the parameters
are phonetic strings).
<p>
Its syntax is similar to PRINT command. The ';' separator meaning a
comma pause. The ',' separator meaning a period pause.
<!-- command -->
<h3>Speak</h3>
<pre class="syntax">
SPEAK text [{;|,} text [...]]
</pre>
<p>
The SPEAK command causes the computer to speak the parameters.
The parameters will replaced by SPGET() to phonetic-equals strings
and then a call to SPOUT will produce the sounds.
<p>
Its syntax is similar to PRINT command. The ';' separator meaning a
comma pause. The ',' separator meaning a period pause.
<!-- EOF -->
</body>
</html>