1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE>Transcriber's Installation</TITLE>
<META NAME="GENERATOR" CONTENT="Mozilla/3.01Gold (X11; I; Linux 2.0.33 i686) [Netscape]">
<META NAME="Author" CONTENT="C. Barras">
</HEAD>
<BODY TEXT="#000000" BGCOLOR="#FFFFFF" LINK="#0000EF" VLINK="#51188E" ALINK="#FF0000">
<H2>Installation</H2>
<H3>Installation from the sources</H3>
<P>Transcriber relies on several softwares or libraries that you need to
install first : Tcl/Tk 8.0-8.2, Snack 1.6, tcLex 1.2 and optionaly NIST/Sphere
2.6 . Step 1-4 are for these modules, step 5-6 is for the content of Transcriber
distribution. </P>
<OL>
<LI>If Tcl/Tk version 8.0 or higher is not already installed on your system,
get it on Scriptic's server :</LI>
<OL>
<PRE><A HREF="http://www.scriptics.com/download/">http://www.scriptics.com/download/</A></PRE>
</OL>
<P>or one of its mirrors and unpack them:</P>
<OL>
<PRE>$ gunzip -c tcl8.2.0.tar.gz | tar xf -</PRE>
</OL>
<P>Choose an installation directory (e.g. <TT>/usr/local</TT>) and follow
instructions found in <TT>tcl8.2.0/README</TT> and <TT>tk8.2.0/README</TT>
(configure with <TT>--enable-shared</TT> option). For Tcl 8.2 under Unix,
it will be something like:</P>
<OL>
<PRE>$ cd tcl8.2.0/unix
$ ./configure --enable-gcc --enable-shared --prefix=/usr/local
$ make
$ make install</PRE>
</OL>
<P>Do the same for Tk. If you choose to install into a different directory,
make sure to set the environnement variables of your system (e.g., <TT>PATH</TT>
and <TT>LD_LIBRARY_PATH</TT>) to the right values.</P>
<LI>This step is needed only if you plan to use Sphere sound file format
with Snack. Get NIST/Sphere archive:</LI>
<UL>
<PRE><A HREF="ftp://jaguar.ncsl.nist.gov/pub/sphere_2.6a.tar.Z">ftp://jaguar.ncsl.nist.gov/pub/sphere_2.6a.tar.Z</A></PRE>
</UL>
<P>Unpack it in a sibling directory of this distribution</P>
<UL>
<PRE>$ zcat sphere_2.6a.tar.Z | tar xf -</PRE>
</UL>
<P>Then install it: </P>
<UL>
<PRE>$ cd nist; sh src/scripts/install.sh </PRE>
</UL>
<P>You will be asked the target platform. For Linux, choose 10 (i.e. custom)
and change following values (the other ones should be OK): </P>
<UL>
<LI>What is/are the Compiler Flags: -O -Wall -fPIC </LI>
<LI>What is/are the Architecture: INTEL</LI>
</UL>
<P>NB - For recent Linux Distributions (i.e. Redhat 5.x or Debian 2.x)
you need to comment the following line inside the file <TT>nist/src/lib/sp/exit.c
</TT>: <TT>extern char *sys_errlist[]; </TT>(thanks to Dafydd Gibbon for
this information) For the courageous ones, a patch is given in the Transcriber
source distribution in <TT>src/patch-sphere</TT> for a dynamic compilation
of Sphere libs under Linux.</P>
<LI>Get Snack 1.6 module:</LI>
<OL>
<PRE><A HREF="http://www.speech.kth.se/snack/">http://www.speech.kth.se/snack/</A></PRE>
</OL>
<P>extract it:</P>
<UL>
<PRE>$ gunzip -c snack1.6.tar.gz | tar xf -</PRE>
</UL>
<P>Then follow the instructions in README and install Snack, e.g. with:</P>
<UL>
<PRE>$ cd snack1.6/src
$ ./configure --prefix=/usr/local
$ make
$ make install </PRE>
</UL>
<P>NB:</P>
<UL>
<LI>If '<TT>./configure</TT>' fails, you have probably Tcl/Tk installed
in a non standard directory; give it with <TT>--with-tcl </TT>and <TT>--with-tk
</TT>options.</LI>
<LI>for use with the old Tcl/Tk 8.0, add the option <TT>--disable-stubs</TT></LI>
<LI>Be sure to get the latest release</LI>
<LI>In order to use Sphere format, configure with <TT>--with-nist=... </TT></LI>
<LI>Test Snack demos!<BR>
</LI>
</UL>
<LI>Get tcLex 1.2 module:</LI>
<OL>
<PRE><A HREF="http://www.multimania.com/fbonnet/Tcl/tcLex/">http://www.multimania.com/fbonnet/Tcl/tcLex/</A> </PRE>
</OL>
<P>extract it:</P>
<UL>
<PRE>$ gunzip -c tcLex1.2a1.tar.gz | tar xf - </PRE>
</UL>
<P>Then follow the instructions in README.txt and install tcLex, e.g. with:
</P>
<UL>
<PRE>$ cd tcLex1.2a1/src
$ chmod a+x configure install-sh
$ ./configure --prefix=/usr/local
$ make
$ make install</PRE>
</UL>
<P>NB - You need to have the complete sources of Tcl for building this
extension, since it relies on specific header files not installed by standard
Tcl installation. </P>
<LI>Extract the source archive of Transcriber, compile and install it:</LI>
<UL>
<PRE>$ gunzip -c Transcriber-1.4.tar.gz | tar xf -
$ cd Transcriber-1.4/src
$ ./configure --with-snack=... --with-tcl=... --with-tk=... --prefix=...
$ make
$ make install</PRE>
</UL>
<LI>As options to the <TT>./configure </TT>command, you have to give the
directory where Snack archive was extracted (<TT>--with-snack=...</TT>),
the directories where Tcl and Tk were installed (<TT>--with-tcl=...--with-tk=...</TT>),
and the directory where you will install Transcriber (<TT>--prefix=...</TT>).
For use with Tcl/Tk version 8.0, add the option <TT>--disable-stubs.</TT></LI>
<P>NB - If you change the directory structure after installation, you have
to edit 'trans' launcher script and give the right absolute path: TRANSPATH=...
(the lib path where transcriber1.4 sub-dir is to be found) </P>
<LI>Test it !</LI>
<UL>
<PRE>$ trans</PRE>
</UL>
<P>You will be asked to open a sound signal or a transcription; some are
found in the '<TT>demo</TT>' sub-directory</P>
</OL>
<H3>Installation from the binaries</H3>
<UL>
<LI>Make sure you have an installed version of Tcl/Tk 8.0 or higher and
get the binary archive for your system (e.g. Linux, Solaris...) matching
your version of Tcl/Tk (8.0 or 8.2).</LI>
<LI>Switch to the place where you want to install the tool, e.g.:</LI>
<UL>
<PRE>$ cd /usr/local</PRE>
</UL>
<P>If you choose to install into a non-standard directory, make sure to
set the environnement variables of your system (e.g., <TT>PATH</TT> and
<TT>LD_LIBRARY_PATH</TT>) to the right values.</P>
<LI>Extract the files from the archive:</LI>
<UL>
<PRE>$ gunzip -c Transcriber-1.4-Linux.tar.gz | tar xf -</PRE>
</UL>
<LI>Launch the tool:</LI>
<UL>
<PRE>$ trans</PRE>
</UL>
<P>You will be asked to open a transcription or a sound signal to start
a new transcription.</P>
<LI>Look in the Help directory for some hints about Transcriber's use or
view it directly in an HTML browser (in transcriber1.4/doc/Index.html)</LI>
</UL>
<H3>
<HR WIDTH="100%">Distribution structure:</H3>
<UL>
<LI>Structure of the source distribution :</LI>
<UL>
<LI>Transcriber-1.4/</LI>
<UL>
<LI>README</LI>
<LI>COPYING</LI>
<LI>contrib/ . . . external archives</LI>
<UL>
<LI>html_library-0.3/</LI>
</UL>
<LI>src/ . . . sources for new Tcl commands and Tk widgets </LI>
<LI>tcl/ . . . Tcl scripts. </LI>
<LI>img/ . . . bitmap images </LI>
<LI>doc/ . . . help files </LI>
<LI>etc/ . . . default files</LI>
<LI>demo/ . . . for sound and transcription files </LI>
</UL>
</UL>
<LI>Structure of the binary distribution (as a result of a standard installation):
</LI>
<UL>
<LI>lib/ => </LI>
<UL>
<LI>html_library-0.3/</LI>
<LI>snack1.6/ </LI>
<LI>tcLex1.2/</LI>
<LI>transcriber1.4/ =></LI>
<UL>
<LI>libtrans.so</LI>
<LI>pkgIndex.tcl</LI>
<LI>tcl/</LI>
<LI>img/</LI>
<LI>etc/</LI>
<LI>doc/ </LI>
</UL>
</UL>
<LI>bin/trans</LI>
</UL>
</UL>
<H3>
<HR WIDTH="100%"><A NAME="problems"></A>Possible problems</H3>
<UL>
<LI>Playback can fail if there is a mismatch between signal format and
soundcard capabilities (e.g., 16 bits signal on audio cards which only
support 8kHz 8 bits mu-law).</LI>
</UL>
</BODY>
</HTML>
|