[de0c1bf] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[de0c1bf] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[8dfc5c3] | 7 | <!ENTITY freetts-download-http "&sourceforge-dl;/freetts/freetts-&freetts-version;-src.zip">
|
---|
[de0c1bf] | 8 | <!ENTITY freetts-download-ftp " ">
|
---|
[d74470c7] | 9 | <!ENTITY freetts-md5sum "692b5ece251fed88539736e55af5f391">
|
---|
| 10 | <!ENTITY freetts-size "13.5 MB">
|
---|
| 11 | <!ENTITY freetts-buildsize "92 MB">
|
---|
| 12 | <!ENTITY freetts-time "0.3 SBU">
|
---|
[de0c1bf] | 13 |
|
---|
[8dfc5c3] | 14 | <!ENTITY freetts-testsuite-download "&sourceforge-dl;/freetts/freetts-&freetts-version;-tst.zip">
|
---|
[d74470c7] | 15 | <!ENTITY freetts-testsuite-md5sum "4348c7db928612d4b6f6eb2fd621a949">
|
---|
| 16 | <!ENTITY freetts-testsuite-size "3.8 MB">
|
---|
[de0c1bf] | 17 |
|
---|
| 18 | ]>
|
---|
| 19 |
|
---|
| 20 | <sect1 id="freetts" xreflabel="FreeTTS-&freetts-version;">
|
---|
| 21 | <?dbhtml filename="freetts.html"?>
|
---|
| 22 |
|
---|
| 23 |
|
---|
| 24 | <title>FreeTTS-&freetts-version;</title>
|
---|
| 25 |
|
---|
| 26 | <indexterm zone="freetts">
|
---|
| 27 | <primary sortas="a-FreeTTS">FreeTTS</primary>
|
---|
| 28 | </indexterm>
|
---|
| 29 |
|
---|
| 30 | <sect2 role="package">
|
---|
| 31 | <title>Introduction to FreeTTS</title>
|
---|
| 32 |
|
---|
[755bb92] | 33 | <para>
|
---|
| 34 | The <application>FreeTTS</application> package contains a speech
|
---|
| 35 | synthesis system written entirely in the <application>Java</application>
|
---|
| 36 | programming language. It is based upon
|
---|
| 37 | <ulink url="http://www.cmuflite.org/">Flite</ulink>: a small run-time
|
---|
| 38 | speech synthesis engine developed at Carnegie Mellon University.
|
---|
| 39 | <application>Flite</application> is derived from the
|
---|
| 40 | <ulink url="http://www.cstr.ed.ac.uk/projects/festival/">Festival</ulink>
|
---|
| 41 | Speech Synthesis System from the University of Edinburgh and the
|
---|
| 42 | <ulink url ="http://festvox.org/">FestVox</ulink> project from Carnegie
|
---|
| 43 | Mellon University. The <application>FreeTTS</application> package is used
|
---|
| 44 | to convert text to audible speech through the system audio hardware.
|
---|
| 45 | </para>
|
---|
[de0c1bf] | 46 |
|
---|
[2791835] | 47 | &lfs81_checked;
|
---|
[d74470c7] | 48 |
|
---|
[de0c1bf] | 49 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 50 | <itemizedlist spacing="compact">
|
---|
| 51 | <listitem>
|
---|
[755bb92] | 52 | <para>
|
---|
| 53 | Download (HTTP): <ulink url="&freetts-download-http;"/>
|
---|
| 54 | </para>
|
---|
[de0c1bf] | 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
[755bb92] | 57 | <para>
|
---|
| 58 | Download (FTP): <ulink url="&freetts-download-ftp;"/>
|
---|
| 59 | </para>
|
---|
[de0c1bf] | 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
[755bb92] | 62 | <para>
|
---|
| 63 | Download MD5 sum: &freetts-md5sum;
|
---|
| 64 | </para>
|
---|
[de0c1bf] | 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
[755bb92] | 67 | <para>
|
---|
| 68 | Download size: &freetts-size;
|
---|
| 69 | </para>
|
---|
[de0c1bf] | 70 | </listitem>
|
---|
| 71 | <listitem>
|
---|
[755bb92] | 72 | <para>
|
---|
| 73 | Estimated disk space required: &freetts-buildsize;
|
---|
| 74 | </para>
|
---|
[de0c1bf] | 75 | </listitem>
|
---|
| 76 | <listitem>
|
---|
[755bb92] | 77 | <para>
|
---|
| 78 | Estimated build time: &freetts-time;
|
---|
| 79 | </para>
|
---|
[de0c1bf] | 80 | </listitem>
|
---|
| 81 | </itemizedlist>
|
---|
| 82 |
|
---|
| 83 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 84 | <itemizedlist spacing="compact">
|
---|
| 85 | <listitem>
|
---|
[755bb92] | 86 | <para>
|
---|
| 87 | Test suite: <ulink url="&freetts-testsuite-download;"/>
|
---|
| 88 | </para>
|
---|
[de0c1bf] | 89 | </listitem>
|
---|
| 90 | <listitem>
|
---|
[755bb92] | 91 | <para>
|
---|
| 92 | Download MD5 sum: &freetts-testsuite-md5sum;
|
---|
| 93 | </para>
|
---|
[de0c1bf] | 94 | </listitem>
|
---|
| 95 | <listitem>
|
---|
[755bb92] | 96 | <para>
|
---|
| 97 | Download size: &freetts-testsuite-size;
|
---|
| 98 | </para>
|
---|
[de0c1bf] | 99 | </listitem>
|
---|
| 100 | </itemizedlist>
|
---|
| 101 |
|
---|
| 102 | <bridgehead renderas="sect3">FreeTTS Dependencies</bridgehead>
|
---|
| 103 |
|
---|
| 104 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[755bb92] | 105 | <para role="required">
|
---|
| 106 | <xref linkend="apache-ant"/> and
|
---|
| 107 | <xref linkend="sharutils"/>
|
---|
| 108 | </para>
|
---|
[de0c1bf] | 109 |
|
---|
[0e2aa08] | 110 | <para condition="html" role="usernotes">User Notes:
|
---|
[755bb92] | 111 | <ulink url="&blfs-wiki;/freetts"/>
|
---|
| 112 | </para>
|
---|
[de0c1bf] | 113 | </sect2>
|
---|
| 114 |
|
---|
| 115 | <sect2 role="installation">
|
---|
| 116 | <title>Installation of FreeTTS</title>
|
---|
| 117 |
|
---|
[755bb92] | 118 | <para>
|
---|
| 119 | The <application>FreeTTS</application> package is distributed in
|
---|
| 120 | ZIP format and the <command>unzip</command> command will default to
|
---|
| 121 | creating an unused source directory. Additionally,
|
---|
| 122 | unzipping the test suite file will prompt for questions
|
---|
| 123 | about overwriting existing files. Use the following commands to
|
---|
| 124 | <command>unzip</command> the source files:
|
---|
| 125 | </para>
|
---|
[de0c1bf] | 126 |
|
---|
| 127 | <screen><userinput>unzip -q freetts-&freetts-version;-src.zip -x META-INF/* &&
|
---|
[d74470c7] | 128 | unzip -q freetts-&freetts-version;-tst.zip -x META-INF/*</userinput></screen>
|
---|
[de0c1bf] | 129 |
|
---|
[d4277d4] | 130 | <tip>
|
---|
[755bb92] | 131 | <para>
|
---|
| 132 | The <command>sh jsapi.sh</command> command below installs the Java
|
---|
| 133 | Speech API components into the <application>FreeTTS</application> source
|
---|
| 134 | tree. You will be required to view, and then accept (by entering a
|
---|
| 135 | <keycap>y</keycap> keypress), a license agreement before the installation
|
---|
| 136 | will continue. If you are scripting (automating) the build, you'll need
|
---|
| 137 | to account for this. There is information about automating build commands
|
---|
| 138 | in the <xref linkend="automating-builds"/> section of Chapter 2. Towards
|
---|
| 139 | the end of this section, specific information for automating this type of
|
---|
| 140 | installation is discussed.
|
---|
| 141 | </para>
|
---|
[d4277d4] | 142 | </tip>
|
---|
| 143 |
|
---|
[755bb92] | 144 | <para>
|
---|
| 145 | Install <application>FreeTTS</application> by running the following
|
---|
| 146 | commands:
|
---|
| 147 | </para>
|
---|
[de0c1bf] | 148 |
|
---|
[d74470c7] | 149 | <screen><userinput>sed -i 's/value="src/value="./' build.xml &&
|
---|
| 150 | cd lib &&
|
---|
[d4277d4] | 151 | sh jsapi.sh &&
|
---|
[d74470c7] | 152 | cd .. &&
|
---|
[de0c1bf] | 153 | ant</userinput></screen>
|
---|
| 154 |
|
---|
[755bb92] | 155 | <para>
|
---|
| 156 | To test the results, issue:
|
---|
| 157 | </para>
|
---|
[de0c1bf] | 158 |
|
---|
| 159 | <screen><userinput>ant junit &&
|
---|
[6747ff5] | 160 | cd tests &&
|
---|
| 161 | sh regression.sh &&
|
---|
| 162 | cd ..</userinput></screen>
|
---|
[de0c1bf] | 163 |
|
---|
[755bb92] | 164 | <para>
|
---|
| 165 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 166 | </para>
|
---|
[de0c1bf] | 167 |
|
---|
[4b072fd] | 168 | <screen role="root"><userinput>install -v -m755 -d /opt/freetts-&freetts-version;/{lib,docs/{audio,images}} &&
|
---|
[d74470c7] | 169 | install -v -m644 lib/*.jar /opt/freetts-&freetts-version;/lib &&
|
---|
| 170 | install -v -m644 *.txt RELEASE_NOTES docs/*.{pdf,html,txt,sx{w,d}} \
|
---|
| 171 | /opt/freetts-&freetts-version;/docs &&
|
---|
| 172 | install -v -m644 docs/audio/* /opt/freetts-&freetts-version;/docs/audio &&
|
---|
| 173 | install -v -m644 docs/images/* /opt/freetts-&freetts-version;/docs/images &&
|
---|
| 174 | cp -v -R javadoc /opt/freetts-&freetts-version; &&
|
---|
[de0c1bf] | 175 | ln -v -s freetts-&freetts-version; /opt/freetts</userinput></screen>
|
---|
| 176 |
|
---|
[755bb92] | 177 | <para>
|
---|
| 178 | Optionally, install any or all of the additional
|
---|
| 179 | <application>FreeTTS</application> components using the following
|
---|
| 180 | commands as the <systemitem class="username">root</systemitem> user
|
---|
| 181 | (see the Command Explanations section for details):
|
---|
| 182 | </para>
|
---|
[de0c1bf] | 183 |
|
---|
[d74470c7] | 184 | <screen role="root"><userinput>cp -v -R bin /opt/freetts-&freetts-version; &&
|
---|
[6747ff5] | 185 | install -v -m644 speech.properties $JAVA_HOME/jre/lib &&
|
---|
[d74470c7] | 186 | cp -v -R tools /opt/freetts-&freetts-version; &&
|
---|
| 187 | cp -v -R mbrola /opt/freetts-&freetts-version; &&
|
---|
| 188 | cp -v -R demo /opt/freetts-&freetts-version;</userinput></screen>
|
---|
[de0c1bf] | 189 |
|
---|
| 190 | </sect2>
|
---|
| 191 |
|
---|
| 192 | <sect2 role="commands">
|
---|
| 193 | <title>Command Explanations</title>
|
---|
| 194 |
|
---|
[755bb92] | 195 | <para>
|
---|
| 196 | <command>sed -i 's/value="src/value="./' build.xml</command>: Fix an
|
---|
| 197 | error in the build file to allow the program to find the source.
|
---|
| 198 | </para>
|
---|
| 199 |
|
---|
| 200 | <para>
|
---|
| 201 | <command>sh jsapi.sh</command>: This command installs the
|
---|
| 202 | <application>Java Speech API</application> components into the
|
---|
| 203 | <application>FreeTTS</application> source tree.
|
---|
| 204 | </para>
|
---|
| 205 |
|
---|
| 206 | <para>
|
---|
| 207 | <command>ant</command>: <application>FreeTTS</application> uses the
|
---|
| 208 | <application>Apache Ant</application> build system instead of the GNU
|
---|
| 209 | <application>autotools</application>. This commands builds everything,
|
---|
| 210 | including the class libraries, tools and demos.
|
---|
| 211 | </para>
|
---|
| 212 |
|
---|
| 213 | <para>
|
---|
| 214 | <command>cp -v -R bin ...</command>;
|
---|
| 215 | <command>install -v -m644 speech.properties</command>: These two commands
|
---|
| 216 | install the demonstration programs. Optionally copy the
|
---|
| 217 | <filename>speech.properties</filename> file to
|
---|
| 218 | <filename>~/speech.properties</filename> if you don't want to make it
|
---|
| 219 | available system-wide.
|
---|
| 220 | </para>
|
---|
| 221 |
|
---|
| 222 | <para>
|
---|
| 223 | <command>cp -v -R tools ...</command>: This installs the voice data
|
---|
| 224 | import utilities. See the <filename>README.html</filename> files in the
|
---|
| 225 | <filename class="directory">tools/</filename> subdirectories for
|
---|
| 226 | information and instructions about using the tools.
|
---|
| 227 | </para>
|
---|
| 228 |
|
---|
| 229 | <para>
|
---|
| 230 | <command>cp -v -R mbrola ...</command>: This installs the
|
---|
| 231 | <filename class="libraryfile">mbrola.jar</filename> file, required if you
|
---|
| 232 | use the <ulink
|
---|
| 233 | url="http://freetts.sourceforge.net/mbrola/README.html">MBROLA</ulink>
|
---|
| 234 | voices.
|
---|
| 235 | </para>
|
---|
| 236 |
|
---|
| 237 | <para>
|
---|
| 238 | <command>cp -v -R demo ...</command>: This installs the sources
|
---|
| 239 | and documentation for the demonstration programs.
|
---|
| 240 | </para>
|
---|
| 241 |
|
---|
| 242 | <para>
|
---|
| 243 | For additional information and documentation about the
|
---|
| 244 | <application>FreeTTS</application> project, visit the main web
|
---|
| 245 | page at <ulink url="http://freetts.sourceforge.net"/>.
|
---|
| 246 | </para>
|
---|
[de0c1bf] | 247 |
|
---|
| 248 | </sect2>
|
---|
| 249 |
|
---|
| 250 | <sect2 role="testing">
|
---|
| 251 | <title>Testing the Installation</title>
|
---|
| 252 |
|
---|
[755bb92] | 253 | <para>
|
---|
| 254 | Test the installation using the following command:
|
---|
| 255 | </para>
|
---|
[de0c1bf] | 256 |
|
---|
[bbdb0ff4] | 257 | <screen><userinput>java -jar /opt/freetts/lib/freetts.jar \
|
---|
[514b131] | 258 | -text "This is a test of the FreeTTS speech synthesis system"</userinput></screen>
|
---|
[de0c1bf] | 259 |
|
---|
[755bb92] | 260 | <para>
|
---|
| 261 | Depending on the setup of your audio drivers and software, you
|
---|
| 262 | may have to add the <option>-streaming</option> switch to the command
|
---|
| 263 | as shown below:
|
---|
| 264 | </para>
|
---|
[de0c1bf] | 265 |
|
---|
[bbdb0ff4] | 266 | <screen><userinput>java -jar /opt/freetts/lib/freetts.jar -streaming \
|
---|
[514b131] | 267 | -text "This is a test of the FreeTTS speech synthesis system"</userinput></screen>
|
---|
[de0c1bf] | 268 |
|
---|
| 269 | </sect2>
|
---|
| 270 |
|
---|
| 271 | <sect2 role="content">
|
---|
| 272 | <title>Contents</title>
|
---|
| 273 |
|
---|
| 274 | <segmentedlist>
|
---|
| 275 | <segtitle>Installed Programs</segtitle>
|
---|
| 276 | <segtitle>Installed Libraries</segtitle>
|
---|
| 277 | <segtitle>Installed Directory</segtitle>
|
---|
| 278 |
|
---|
| 279 | <seglistitem>
|
---|
[755bb92] | 280 | <seg>
|
---|
| 281 | None
|
---|
| 282 | </seg>
|
---|
| 283 | <seg>
|
---|
| 284 | /opt/freetts-&freetts-version;/lib/*.jar
|
---|
| 285 | </seg>
|
---|
| 286 | <seg>
|
---|
| 287 | /opt/freetts-&freetts-version;
|
---|
| 288 | </seg>
|
---|
[de0c1bf] | 289 | </seglistitem>
|
---|
| 290 | </segmentedlist>
|
---|
| 291 |
|
---|
| 292 | <variablelist>
|
---|
| 293 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 294 | <?dbfo list-presentation="list"?>
|
---|
| 295 | <?dbhtml list-presentation="table"?>
|
---|
| 296 |
|
---|
| 297 | <varlistentry>
|
---|
[755bb92] | 298 | <term><filename class="libraryfile">*.jar </filename></term>
|
---|
[de0c1bf] | 299 | <listitem>
|
---|
[755bb92] | 300 | <para>
|
---|
| 301 | contains the class libraries which make up the
|
---|
| 302 | <application>FreeTTS</application> speech synthesis system.
|
---|
| 303 | </para>
|
---|
[de0c1bf] | 304 | </listitem>
|
---|
| 305 | </varlistentry>
|
---|
| 306 | </variablelist>
|
---|
| 307 |
|
---|
| 308 | </sect2>
|
---|
| 309 |
|
---|
| 310 | </sect1>
|
---|