source: multimedia/audioutils/freetts.xml@ 2a589b08

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 2a589b08 was 2a589b08, checked in by Pierre Labastie <pieere@…>, 8 years ago

Tags

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@17732 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 11.0 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY freetts-download-http "&sourceforge-repo;/freetts/freetts-&freetts-version;-src.zip">
8 <!ENTITY freetts-download-ftp " ">
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">
13
14 <!ENTITY freetts-testsuite-download "&sourceforge-repo;/freetts/freetts-&freetts-version;-tst.zip">
15 <!ENTITY freetts-testsuite-md5sum "4348c7db928612d4b6f6eb2fd621a949">
16 <!ENTITY freetts-testsuite-size "3.8 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
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>
50
51 &lfs7a_checked;
52
53 <bridgehead renderas="sect3">Package Information</bridgehead>
54 <itemizedlist spacing="compact">
55 <listitem>
56 <para>
57 Download (HTTP): <ulink url="&freetts-download-http;"/>
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Download (FTP): <ulink url="&freetts-download-ftp;"/>
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Download MD5 sum: &freetts-md5sum;
68 </para>
69 </listitem>
70 <listitem>
71 <para>
72 Download size: &freetts-size;
73 </para>
74 </listitem>
75 <listitem>
76 <para>
77 Estimated disk space required: &freetts-buildsize;
78 </para>
79 </listitem>
80 <listitem>
81 <para>
82 Estimated build time: &freetts-time;
83 </para>
84 </listitem>
85 </itemizedlist>
86
87 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
88 <itemizedlist spacing="compact">
89 <listitem>
90 <para>
91 Test suite: <ulink url="&freetts-testsuite-download;"/>
92 </para>
93 </listitem>
94 <listitem>
95 <para>
96 Download MD5 sum: &freetts-testsuite-md5sum;
97 </para>
98 </listitem>
99 <listitem>
100 <para>
101 Download size: &freetts-testsuite-size;
102 </para>
103 </listitem>
104 </itemizedlist>
105
106 <bridgehead renderas="sect3">FreeTTS Dependencies</bridgehead>
107
108 <bridgehead renderas="sect4">Required</bridgehead>
109 <para role="required">
110 <xref linkend="apache-ant"/> and
111 <xref linkend="sharutils"/>
112 </para>
113
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
125 <para condition="html" role="usernotes">User Notes:
126 <ulink url="&blfs-wiki;/freetts"/>
127 </para>
128 </sect2>
129
130 <sect2 role="installation">
131 <title>Installation of FreeTTS</title>
132
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>
141
142<screen><userinput>unzip -q freetts-&freetts-version;-src.zip -x META-INF/* &amp;&amp;
143unzip -q freetts-&freetts-version;-tst.zip -x META-INF/*</userinput></screen>
144
145 <tip>
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>
157 </tip>
158
159 <para>
160 Install <application>FreeTTS</application> by running the following
161 commands:
162 </para>
163
164<screen><userinput>sed -i 's/value="src/value="./' build.xml &amp;&amp;
165cd lib &amp;&amp;
166sh jsapi.sh &amp;&amp;
167cd .. &amp;&amp;
168ant</userinput></screen>
169
170 <para>
171 To test the results, issue:
172 </para>
173
174<screen><userinput>ant junit &amp;&amp;
175cd tests &amp;&amp;
176sh regression.sh &amp;&amp;
177cd ..</userinput></screen>
178
179 <para>
180 Now, as the <systemitem class="username">root</systemitem> user:
181 </para>
182
183<screen role="root"><userinput>install -v -m755 -d /opt/freetts-&freetts-version;/{lib,docs/{audio,images}} &amp;&amp;
184install -v -m644 lib/*.jar /opt/freetts-&freetts-version;/lib &amp;&amp;
185install -v -m644 *.txt RELEASE_NOTES docs/*.{pdf,html,txt,sx{w,d}} \
186 /opt/freetts-&freetts-version;/docs &amp;&amp;
187install -v -m644 docs/audio/* /opt/freetts-&freetts-version;/docs/audio &amp;&amp;
188install -v -m644 docs/images/* /opt/freetts-&freetts-version;/docs/images &amp;&amp;
189cp -v -R javadoc /opt/freetts-&freetts-version; &amp;&amp;
190ln -v -s freetts-&freetts-version; /opt/freetts</userinput></screen>
191
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>
198
199<screen role="root"><userinput>cp -v -R bin /opt/freetts-&freetts-version; &amp;&amp;
200install -v -m644 speech.properties $JAVA_HOME/jre/lib &amp;&amp;
201cp -v -R tools /opt/freetts-&freetts-version; &amp;&amp;
202cp -v -R mbrola /opt/freetts-&freetts-version; &amp;&amp;
203cp -v -R demo /opt/freetts-&freetts-version;</userinput></screen>
204
205 </sect2>
206
207 <sect2 role="commands">
208 <title>Command Explanations</title>
209
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>
262
263 </sect2>
264
265 <sect2 role="testing">
266 <title>Testing the Installation</title>
267
268 <para>
269 Test the installation using the following command:
270 </para>
271
272<screen><userinput>java -jar /opt/freetts/lib/freetts.jar \
273 -text "This is a test of the FreeTTS speech synthesis system"</userinput></screen>
274
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>
280
281<screen><userinput>java -jar /opt/freetts/lib/freetts.jar -streaming \
282 -text "This is a test of the FreeTTS speech synthesis system"</userinput></screen>
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>
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>
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>
313 <term><filename class="libraryfile">*.jar </filename></term>
314 <listitem>
315 <para>
316 contains the class libraries which make up the
317 <application>FreeTTS</application> speech synthesis system.
318 </para>
319 </listitem>
320 </varlistentry>
321 </variablelist>
322
323 </sect2>
324
325</sect1>
Note: See TracBrowser for help on using the repository browser.