Menu

[b84aab]: / documentation / drafts / SpeechSynth.draft.html  Maximize  Restore  History

Download this file

103 lines (78 with data), 2.2 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
<!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 &#169;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>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.