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