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