[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 |
|
---|
[ca8bcae9] | 51 | &lfs77_checked; &gcc5_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 |
|
---|
[0e2aa08] | 114 | <para condition="html" role="usernotes">User Notes:
|
---|
[755bb92] | 115 | <ulink url="&blfs-wiki;/freetts"/>
|
---|
| 116 | </para>
|
---|
[de0c1bf] | 117 | </sect2>
|
---|
| 118 |
|
---|
| 119 | <sect2 role="installation">
|
---|
| 120 | <title>Installation of FreeTTS</title>
|
---|
| 121 |
|
---|
[755bb92] | 122 | <para>
|
---|
| 123 | The <application>FreeTTS</application> package is distributed in
|
---|
| 124 | ZIP format and the <command>unzip</command> command will default to
|
---|
| 125 | creating an unused source directory. Additionally,
|
---|
| 126 | unzipping the test suite file will prompt for questions
|
---|
| 127 | about overwriting existing files. Use the following commands to
|
---|
| 128 | <command>unzip</command> the source files:
|
---|
| 129 | </para>
|
---|
[de0c1bf] | 130 |
|
---|
| 131 | <screen><userinput>unzip -q freetts-&freetts-version;-src.zip -x META-INF/* &&
|
---|
[d74470c7] | 132 | unzip -q freetts-&freetts-version;-tst.zip -x META-INF/*</userinput></screen>
|
---|
[de0c1bf] | 133 |
|
---|
[d4277d4] | 134 | <tip>
|
---|
[755bb92] | 135 | <para>
|
---|
| 136 | The <command>sh jsapi.sh</command> command below installs the Java
|
---|
| 137 | Speech API components into the <application>FreeTTS</application> source
|
---|
| 138 | tree. You will be required to view, and then accept (by entering a
|
---|
| 139 | <keycap>y</keycap> keypress), a license agreement before the installation
|
---|
| 140 | will continue. If you are scripting (automating) the build, you'll need
|
---|
| 141 | to account for this. There is information about automating build commands
|
---|
| 142 | in the <xref linkend="automating-builds"/> section of Chapter 2. Towards
|
---|
| 143 | the end of this section, specific information for automating this type of
|
---|
| 144 | installation is discussed.
|
---|
| 145 | </para>
|
---|
[d4277d4] | 146 | </tip>
|
---|
| 147 |
|
---|
[755bb92] | 148 | <para>
|
---|
| 149 | Install <application>FreeTTS</application> by running the following
|
---|
| 150 | commands:
|
---|
| 151 | </para>
|
---|
[de0c1bf] | 152 |
|
---|
[d74470c7] | 153 | <screen><userinput>sed -i 's/value="src/value="./' build.xml &&
|
---|
| 154 | cd lib &&
|
---|
[d4277d4] | 155 | sh jsapi.sh &&
|
---|
[d74470c7] | 156 | cd .. &&
|
---|
[de0c1bf] | 157 | ant</userinput></screen>
|
---|
| 158 |
|
---|
[755bb92] | 159 | <para>
|
---|
| 160 | To test the results, issue:
|
---|
| 161 | </para>
|
---|
[de0c1bf] | 162 |
|
---|
| 163 | <screen><userinput>ant junit &&
|
---|
[6747ff5] | 164 | cd tests &&
|
---|
| 165 | sh regression.sh &&
|
---|
| 166 | cd ..</userinput></screen>
|
---|
[de0c1bf] | 167 |
|
---|
[755bb92] | 168 | <para>
|
---|
| 169 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 170 | </para>
|
---|
[de0c1bf] | 171 |
|
---|
[4b072fd] | 172 | <screen role="root"><userinput>install -v -m755 -d /opt/freetts-&freetts-version;/{lib,docs/{audio,images}} &&
|
---|
[d74470c7] | 173 | install -v -m644 lib/*.jar /opt/freetts-&freetts-version;/lib &&
|
---|
| 174 | install -v -m644 *.txt RELEASE_NOTES docs/*.{pdf,html,txt,sx{w,d}} \
|
---|
| 175 | /opt/freetts-&freetts-version;/docs &&
|
---|
| 176 | install -v -m644 docs/audio/* /opt/freetts-&freetts-version;/docs/audio &&
|
---|
| 177 | install -v -m644 docs/images/* /opt/freetts-&freetts-version;/docs/images &&
|
---|
| 178 | cp -v -R javadoc /opt/freetts-&freetts-version; &&
|
---|
[de0c1bf] | 179 | ln -v -s freetts-&freetts-version; /opt/freetts</userinput></screen>
|
---|
| 180 |
|
---|
[755bb92] | 181 | <para>
|
---|
| 182 | Optionally, install any or all of the additional
|
---|
| 183 | <application>FreeTTS</application> components using the following
|
---|
| 184 | commands as the <systemitem class="username">root</systemitem> user
|
---|
| 185 | (see the Command Explanations section for details):
|
---|
| 186 | </para>
|
---|
[de0c1bf] | 187 |
|
---|
[d74470c7] | 188 | <screen role="root"><userinput>cp -v -R bin /opt/freetts-&freetts-version; &&
|
---|
[6747ff5] | 189 | install -v -m644 speech.properties $JAVA_HOME/jre/lib &&
|
---|
[d74470c7] | 190 | cp -v -R tools /opt/freetts-&freetts-version; &&
|
---|
| 191 | cp -v -R mbrola /opt/freetts-&freetts-version; &&
|
---|
| 192 | cp -v -R demo /opt/freetts-&freetts-version;</userinput></screen>
|
---|
[de0c1bf] | 193 |
|
---|
| 194 | </sect2>
|
---|
| 195 |
|
---|
| 196 | <sect2 role="commands">
|
---|
| 197 | <title>Command Explanations</title>
|
---|
| 198 |
|
---|
[755bb92] | 199 | <para>
|
---|
| 200 | <command>sed -i 's/value="src/value="./' build.xml</command>: Fix an
|
---|
| 201 | error in the build file to allow the program to find the source.
|
---|
| 202 | </para>
|
---|
| 203 |
|
---|
| 204 | <para>
|
---|
| 205 | <command>sh jsapi.sh</command>: This command installs the
|
---|
| 206 | <application>Java Speech API</application> components into the
|
---|
| 207 | <application>FreeTTS</application> source tree.
|
---|
| 208 | </para>
|
---|
| 209 |
|
---|
| 210 | <para>
|
---|
| 211 | <command>ant</command>: <application>FreeTTS</application> uses the
|
---|
| 212 | <application>Apache Ant</application> build system instead of the GNU
|
---|
| 213 | <application>autotools</application>. This commands builds everything,
|
---|
| 214 | including the class libraries, tools and demos.
|
---|
| 215 | </para>
|
---|
| 216 |
|
---|
| 217 | <para>
|
---|
| 218 | <command>cp -v -R bin ...</command>;
|
---|
| 219 | <command>install -v -m644 speech.properties</command>: These two commands
|
---|
| 220 | install the demonstration programs. Optionally copy the
|
---|
| 221 | <filename>speech.properties</filename> file to
|
---|
| 222 | <filename>~/speech.properties</filename> if you don't want to make it
|
---|
| 223 | available system-wide.
|
---|
| 224 | </para>
|
---|
| 225 |
|
---|
| 226 | <para>
|
---|
| 227 | <command>cp -v -R tools ...</command>: This installs the voice data
|
---|
| 228 | import utilities. See the <filename>README.html</filename> files in the
|
---|
| 229 | <filename class="directory">tools/</filename> subdirectories for
|
---|
| 230 | information and instructions about using the tools.
|
---|
| 231 | </para>
|
---|
| 232 |
|
---|
| 233 | <para>
|
---|
| 234 | <command>cp -v -R mbrola ...</command>: This installs the
|
---|
| 235 | <filename class="libraryfile">mbrola.jar</filename> file, required if you
|
---|
| 236 | use the <ulink
|
---|
| 237 | url="http://freetts.sourceforge.net/mbrola/README.html">MBROLA</ulink>
|
---|
| 238 | voices.
|
---|
| 239 | </para>
|
---|
| 240 |
|
---|
| 241 | <para>
|
---|
| 242 | <command>cp -v -R demo ...</command>: This installs the sources
|
---|
| 243 | and documentation for the demonstration programs.
|
---|
| 244 | </para>
|
---|
| 245 |
|
---|
| 246 | <para>
|
---|
| 247 | For additional information and documentation about the
|
---|
| 248 | <application>FreeTTS</application> project, visit the main web
|
---|
| 249 | page at <ulink url="http://freetts.sourceforge.net"/>.
|
---|
| 250 | </para>
|
---|
[de0c1bf] | 251 |
|
---|
| 252 | </sect2>
|
---|
| 253 |
|
---|
| 254 | <sect2 role="testing">
|
---|
| 255 | <title>Testing the Installation</title>
|
---|
| 256 |
|
---|
[755bb92] | 257 | <para>
|
---|
| 258 | Test the installation using the following command:
|
---|
| 259 | </para>
|
---|
[de0c1bf] | 260 |
|
---|
[bbdb0ff4] | 261 | <screen><userinput>java -jar /opt/freetts/lib/freetts.jar \
|
---|
[de0c1bf] | 262 | -text "This is a test of the FreeTTS speech synthesis system"</userinput></screen>
|
---|
| 263 |
|
---|
[755bb92] | 264 | <para>
|
---|
| 265 | Depending on the setup of your audio drivers and software, you
|
---|
| 266 | may have to add the <option>-streaming</option> switch to the command
|
---|
| 267 | as shown below:
|
---|
| 268 | </para>
|
---|
[de0c1bf] | 269 |
|
---|
[bbdb0ff4] | 270 | <screen><userinput>java -jar /opt/freetts/lib/freetts.jar -streaming \
|
---|
[de0c1bf] | 271 | -text "This is a test of the FreeTTS speech synthesis system"</userinput></screen>
|
---|
| 272 |
|
---|
| 273 | </sect2>
|
---|
| 274 |
|
---|
| 275 | <sect2 role="content">
|
---|
| 276 | <title>Contents</title>
|
---|
| 277 |
|
---|
| 278 | <segmentedlist>
|
---|
| 279 | <segtitle>Installed Programs</segtitle>
|
---|
| 280 | <segtitle>Installed Libraries</segtitle>
|
---|
| 281 | <segtitle>Installed Directory</segtitle>
|
---|
| 282 |
|
---|
| 283 | <seglistitem>
|
---|
[755bb92] | 284 | <seg>
|
---|
| 285 | None
|
---|
| 286 | </seg>
|
---|
| 287 | <seg>
|
---|
| 288 | /opt/freetts-&freetts-version;/lib/*.jar
|
---|
| 289 | </seg>
|
---|
| 290 | <seg>
|
---|
| 291 | /opt/freetts-&freetts-version;
|
---|
| 292 | </seg>
|
---|
[de0c1bf] | 293 | </seglistitem>
|
---|
| 294 | </segmentedlist>
|
---|
| 295 |
|
---|
| 296 | <variablelist>
|
---|
| 297 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 298 | <?dbfo list-presentation="list"?>
|
---|
| 299 | <?dbhtml list-presentation="table"?>
|
---|
| 300 |
|
---|
| 301 | <varlistentry>
|
---|
[755bb92] | 302 | <term><filename class="libraryfile">*.jar </filename></term>
|
---|
[de0c1bf] | 303 | <listitem>
|
---|
[755bb92] | 304 | <para>
|
---|
| 305 | contains the class libraries which make up the
|
---|
| 306 | <application>FreeTTS</application> speech synthesis system.
|
---|
| 307 | </para>
|
---|
[de0c1bf] | 308 | </listitem>
|
---|
| 309 | </varlistentry>
|
---|
| 310 | </variablelist>
|
---|
| 311 |
|
---|
| 312 | </sect2>
|
---|
| 313 |
|
---|
| 314 | </sect1>
|
---|