[de0c1bf] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY freetts-download-http "http://prdownloads.sourceforge.net/freetts/freetts-&freetts-version;-src.zip">
|
---|
| 8 | <!ENTITY freetts-download-ftp " ">
|
---|
| 9 | <!ENTITY freetts-md5sum "f3e3ceae5b8cb5e175b50931f2e350e8">
|
---|
| 10 | <!ENTITY freetts-size "14.1 MB">
|
---|
| 11 | <!ENTITY freetts-buildsize "112 MB">
|
---|
| 12 | <!ENTITY freetts-time "0.4 SBU">
|
---|
| 13 |
|
---|
| 14 | <!ENTITY freetts-testsuite-download "http://prdownloads.sourceforge.net/freetts/freetts-&freetts-version;-tst.zip">
|
---|
| 15 | <!ENTITY freetts-testsuite-md5sum "8e461701ee94b3942cc37783f6de4128">
|
---|
| 16 | <!ENTITY freetts-testsuite-size "3.9 MB">
|
---|
| 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 |
|
---|
| 49 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 50 | <itemizedlist spacing="compact">
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>Download (HTTP): <ulink url="&freetts-download-http;"/></para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>Download (FTP): <ulink url="&freetts-download-ftp;"/></para>
|
---|
| 56 | </listitem>
|
---|
| 57 | <listitem>
|
---|
| 58 | <para>Download MD5 sum: &freetts-md5sum;</para>
|
---|
| 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>Download size: &freetts-size;</para>
|
---|
| 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
| 64 | <para>Estimated disk space required: &freetts-buildsize;</para>
|
---|
| 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
| 67 | <para>Estimated build time: &freetts-time;</para>
|
---|
| 68 | </listitem>
|
---|
| 69 | </itemizedlist>
|
---|
| 70 |
|
---|
| 71 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 72 | <itemizedlist spacing="compact">
|
---|
| 73 | <listitem>
|
---|
| 74 | <para>Test suite: <ulink url="&freetts-testsuite-download;"/></para>
|
---|
| 75 | </listitem>
|
---|
| 76 | <listitem>
|
---|
| 77 | <para>Download MD5 sum: &freetts-testsuite-md5sum;</para>
|
---|
| 78 | </listitem>
|
---|
| 79 | <listitem>
|
---|
| 80 | <para>Download size: &freetts-testsuite-size;</para>
|
---|
| 81 | </listitem>
|
---|
| 82 | </itemizedlist>
|
---|
| 83 |
|
---|
| 84 | <bridgehead renderas="sect3">FreeTTS Dependencies</bridgehead>
|
---|
| 85 |
|
---|
| 86 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[e204bf91] | 87 | <para><xref linkend="apache-ant"/> (and
|
---|
[d7ecaa6] | 88 | <ulink url="http://www.junit.org/">JUnit</ulink>
|
---|
[e204bf91] | 89 | to run the test suite),
|
---|
[de0c1bf] | 90 | <xref linkend="unzip"/> and working audio hardware/software.</para>
|
---|
| 91 |
|
---|
| 92 | </sect2>
|
---|
| 93 |
|
---|
| 94 | <sect2 role="installation">
|
---|
| 95 | <title>Installation of FreeTTS</title>
|
---|
| 96 |
|
---|
[e204bf91] | 97 | <para>The <application>FreeTTS</application> package is distributed in
|
---|
| 98 | ZIP format and the <command>unzip</command> command will default to
|
---|
| 99 | creating an unused source directory. Additionally,
|
---|
[5aee372] | 100 | unzipping the test suite file will prompt for questions
|
---|
[e204bf91] | 101 | about overwriting existing files. Use the following commands to
|
---|
[de0c1bf] | 102 | <command>unzip</command> the source files:</para>
|
---|
| 103 |
|
---|
| 104 | <screen><userinput>unzip -q freetts-&freetts-version;-src.zip -x META-INF/* &&
|
---|
| 105 | unzip -q freetts-&freetts-version;-tst.zip \
|
---|
| 106 | -x {META-INF/*,freetts-&freetts-version;/{acknowledgments.txt,license.terms}}</userinput></screen>
|
---|
| 107 |
|
---|
[e204bf91] | 108 | <para>Install <application>FreeTTS</application> by running the following
|
---|
[de0c1bf] | 109 | commands:</para>
|
---|
| 110 |
|
---|
[c033874] | 111 | <screen><userinput>cd lib &&
|
---|
| 112 | yes | sh jsapi.sh &&
|
---|
| 113 | cd .. &&
|
---|
[de0c1bf] | 114 | ant</userinput></screen>
|
---|
| 115 |
|
---|
| 116 | <para>To test the results, issue:</para>
|
---|
| 117 |
|
---|
| 118 | <screen><userinput>ant junit &&
|
---|
| 119 | sh regression.sh</userinput></screen>
|
---|
| 120 |
|
---|
| 121 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 122 |
|
---|
| 123 | <screen role="root"><userinput>install -v -m755 -d /opt/freetts-&freetts-version;/{lib,docs/{audio,images}} &&
|
---|
| 124 | install -v -m644 lib/*.jar /opt/freetts-&freetts-version;/lib &&
|
---|
| 125 | install -v -m644 *.txt RELEASE_NOTES license.terms \
|
---|
| 126 | docs/*.{pdf,html,txt,sx{w,d}} \
|
---|
| 127 | /opt/freetts-&freetts-version;/docs &&
|
---|
| 128 | install -v -m644 docs/audio/* /opt/freetts-&freetts-version;/docs/audio &&
|
---|
| 129 | install -v -m644 docs/images/* /opt/freetts-&freetts-version;/docs/images &&
|
---|
| 130 | cp -v -R javadoc /opt/freetts-&freetts-version; &&
|
---|
| 131 | ln -v -s freetts-&freetts-version; /opt/freetts</userinput></screen>
|
---|
| 132 |
|
---|
[e204bf91] | 133 | <para>Optionally, install any or all of the additional
|
---|
| 134 | <application>FreeTTS</application> components using the following
|
---|
| 135 | commands as the <systemitem class="username">root</systemitem> user
|
---|
[3502f04a] | 136 | (see the Command Explanations section for details):</para>
|
---|
[de0c1bf] | 137 |
|
---|
| 138 | <screen role="root"><userinput>cp -v -R bin /opt/freetts-&freetts-version; &&
|
---|
| 139 | install -v -m644 speech.properties /opt/jdk/jdk/jre/lib &&
|
---|
| 140 | cp -v -R tools /opt/freetts-&freetts-version; &&
|
---|
| 141 | cp -v -R mbrola /opt/freetts-&freetts-version; &&
|
---|
| 142 | cp -v -R demo /opt/freetts-&freetts-version;</userinput></screen>
|
---|
| 143 |
|
---|
| 144 | </sect2>
|
---|
| 145 |
|
---|
| 146 | <sect2 role="commands">
|
---|
| 147 | <title>Command Explanations</title>
|
---|
| 148 |
|
---|
[e204bf91] | 149 | <para><command>yes | sh jsapi.sh</command>: This command installs the
|
---|
| 150 | <application>Java Speech API</application> into the
|
---|
[d7ecaa6] | 151 | <application>FreeTTS</application> source tree. <command>yes</command>
|
---|
[de0c1bf] | 152 | is piped so that this command can be scripted and will automatically
|
---|
| 153 | agree to the JSAPI license terms. You can view the license you are
|
---|
[e204bf91] | 154 | agreeing to at
|
---|
[de0c1bf] | 155 | <ulink url="http://linuxfromscratch.org/~randy/jsapi-license.txt"/>.</para>
|
---|
| 156 |
|
---|
| 157 | <para><command>ant</command>: <application>FreeTTS</application> uses the
|
---|
[e204bf91] | 158 | <application>Apache Ant</application> build system instead of the GNU
|
---|
[de0c1bf] | 159 | <application>autotools</application>. This commands builds everything,
|
---|
| 160 | including the class libraries, tools and demos.</para>
|
---|
| 161 |
|
---|
| 162 | <para><command>cp -v -R bin ...</command>;
|
---|
| 163 | <command>install -v -m644 speech.properties</command>: These two commands
|
---|
[e204bf91] | 164 | install the demonstration programs. Optionally copy the
|
---|
| 165 | <filename>speech.properties</filename> file to
|
---|
| 166 | <filename>~/speech.properties</filename> if you don't want to make it
|
---|
[de0c1bf] | 167 | available system-wide.</para>
|
---|
| 168 |
|
---|
| 169 | <para><command>cp -v -R tools ...</command>: This installs the voice data
|
---|
[e204bf91] | 170 | import utilities. See the <filename>README.html</filename> files in the
|
---|
| 171 | <filename class='directory'>tools/</filename> subdirectories for
|
---|
[de0c1bf] | 172 | information and instructions about using the tools.</para>
|
---|
| 173 |
|
---|
[e204bf91] | 174 | <para><command>cp -v -R mbrola ...</command>: This installs the
|
---|
| 175 | <filename class='libraryfile'>mbrola.jar</filename> file, required if you
|
---|
| 176 | use the <ulink
|
---|
[de0c1bf] | 177 | url="http://freetts.sourceforge.net/mbrola/README.html">MBROLA</ulink>
|
---|
| 178 | voices.</para>
|
---|
| 179 |
|
---|
[e204bf91] | 180 | <para><command>cp -v -R demo ...</command>: This installs the sources
|
---|
[de0c1bf] | 181 | and documentation for the demonstration programs.</para>
|
---|
| 182 |
|
---|
[e204bf91] | 183 | <para>For additional information and documentation about the
|
---|
| 184 | <application>FreeTTS</application> project, visit the main web page at
|
---|
[de0c1bf] | 185 | <ulink url="http://freetts.sourceforge.net"/>.</para>
|
---|
| 186 |
|
---|
| 187 | </sect2>
|
---|
| 188 |
|
---|
| 189 | <sect2 role="testing">
|
---|
| 190 | <title>Testing the Installation</title>
|
---|
| 191 |
|
---|
| 192 | <para>Test the installation using the following command:</para>
|
---|
| 193 |
|
---|
[bbdb0ff4] | 194 | <screen><userinput>java -jar /opt/freetts/lib/freetts.jar \
|
---|
[de0c1bf] | 195 | -text "This is a test of the FreeTTS speech synthesis system"</userinput></screen>
|
---|
| 196 |
|
---|
[e204bf91] | 197 | <para>Depending on the setup of your audio drivers and software, you
|
---|
[de0c1bf] | 198 | may have to add the <option>-streaming</option> switch to the command
|
---|
| 199 | as shown below:</para>
|
---|
| 200 |
|
---|
[bbdb0ff4] | 201 | <screen><userinput>java -jar /opt/freetts/lib/freetts.jar -streaming \
|
---|
[de0c1bf] | 202 | -text "This is a test of the FreeTTS speech synthesis system"</userinput></screen>
|
---|
| 203 |
|
---|
| 204 | </sect2>
|
---|
| 205 |
|
---|
| 206 | <sect2 role="content">
|
---|
| 207 | <title>Contents</title>
|
---|
| 208 |
|
---|
| 209 | <segmentedlist>
|
---|
| 210 | <segtitle>Installed Programs</segtitle>
|
---|
| 211 | <segtitle>Installed Libraries</segtitle>
|
---|
| 212 | <segtitle>Installed Directory</segtitle>
|
---|
| 213 |
|
---|
| 214 | <seglistitem>
|
---|
| 215 | <seg>None</seg>
|
---|
| 216 | <seg>/opt/freetts-&freetts-version;/lib/*.jar</seg>
|
---|
| 217 | <seg>/opt/freetts-&freetts-version;</seg>
|
---|
| 218 | </seglistitem>
|
---|
| 219 | </segmentedlist>
|
---|
| 220 |
|
---|
| 221 | <variablelist>
|
---|
| 222 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 223 | <?dbfo list-presentation="list"?>
|
---|
| 224 | <?dbhtml list-presentation="table"?>
|
---|
| 225 |
|
---|
| 226 | <varlistentry>
|
---|
| 227 | <term><filename class='libraryfile'>*.jar </filename></term>
|
---|
| 228 | <listitem>
|
---|
[e204bf91] | 229 | <para>contains the class libraries which make up the
|
---|
[de0c1bf] | 230 | <application>FreeTTS</application> speech synthesis system.</para>
|
---|
| 231 | </listitem>
|
---|
| 232 | </varlistentry>
|
---|
| 233 | </variablelist>
|
---|
| 234 |
|
---|
| 235 | </sect2>
|
---|
| 236 |
|
---|
| 237 | </sect1>
|
---|