Table of Contents 1/ Prerequists 2/ Installing java 1.6

Transcription

Table of Contents 1/ Prerequists 2/ Installing java 1.6
Ho w - to in stall ViaVoice runtim e and x v oic e o n Ubuntu Guts y 3 8 6
V0.1 / Fev 1 1, 2 0 0 8
ch ris t o p h e.klo p p(at)free.fr
Gut sy Gibbo n (7.10)
This d oc u m e n t is licen se d u n d e r t he Attrib u tio n NonCo m m e rcial 2.0 Fra nce licen se, available a t
h t t p: / / c r ea tiveco m m o n s.org / licen s e s / by nc / 2.0 / f r / .
This d oc u m e n t p r e s e n t s o ne way t o ins t all IBM ViaVoice for lin ux o n Ubu n t u
Table of Contents
1 / Prere q uis t s .................................................................................................................................. 1
2 / Ins talling java 1.6......................................................................................................................1
3 / Ins talling t h e ViaVoice r p m ..................................................................................................2
4 / Setting t h e ViaVoice e nviro n m e n t wit h vvsete nv........................................................... 2
5 / Creating a u s e r User1.............................................................................................................. 3
6 / Ins talling m is si ng libra ry....................................................................................................... 3
7 / Creating t h e n e e de d sy m b olic link......................................................................................3
8 / Creating t h e u s e r User1.......................................................................................................... 3
9 / Enviro n m e n t s e t ti ng :.............................................................................................................. 3
1 0 / Creating a u s e r :......................................................................................................................3
1 1 / Tes ting t h e a u dio....................................................................................................................4
1 2 / Star ting t h e e n r oll me n t ........................................................................................................ 6
1 3 / Let u s ins tall xvoice (as n o m a rl u s e r xto p h e)................................................................7
1 4 / Let's s ee w ha t is in t h e t a r.g z file .....................................................................................7
1 5 / We t h e n u n t a rg zi p it ............................................................................................................ 8
1 6 / Ins talling t h e p r ogra m in / u s r / bi n ................................................................................... 8
1 7 / Let's te s t xvoice a n d ins tall t he mi s sing libraries .......................................................8
1 7 a / Inst alling mi s sing library libgn o m e ui32....................................................................... 8
1 7 b / Ins talling mis sing libg dk_i mlib.so.1.............................................................................. 8
1 8 / Ins talling a correct versio n of libvtb nfc31.so................................................................9
1 9 / New te s t of xvoice.................................................................................................................. 9
2 0 / Co pying t h e xvoice.x ml file in t he cur re n t directo ry................................................1 0
The u nix co m m a n d s a re p r e se n t e d u si ng t h e « co u r rier fo n t »
1/ Prerequists
To h ave acces s t o a co py of t h e ViaVoice_ru n ti m e - 3.0 - 1.2.i386.r p m.
2/ Installing java 1.6
sudo apt­get update
Ins talling ViaVoice a n d xvoice o n Ubu n t u Gutsy gibbo n
p age 1 / 1 1
sudo apt­get install sun­java6­jre
3/ Installing the ViaVoice rpm
sudo apt­get update
sudo apt­get install alien
sudo alien ViaVoice_runtime­3.0­1.2.i386.rpm
sudo dpkg ­i viavoice­runtime­3.0­2.2.deb
Fro m n o w o n we will work a s ro o t. This ca n be d o ne wit h « s u d o s u »
4/ Setting the ViaVoice environment with vvsetenv
r o o t@xto p h e - la p t o p: / h o m e / x t o p h e # . vvsetenv
Ins talling ViaVoice a n d xvoice o n Ubu n t u Gutsy gibbo n
p age 2 / 1 1
5/ Creating a user User1
r o o t@xto p h e - la p t o p: / h o m e / x t o p h e # /usr/lib/ViaVoice/bin/vvsetuser
NB. You will get a n erro r beca u s e a libra ry is m is sing
Please e n t e r t h e ViaVoice UserNa m e [defa ult: ViaVoice User1]
Please wait, crea ting u s e r ViaVoice User1
/ u s r / lib /ViaVoice / bi n / vvu s e r: err or w hile loa di ng s h a re d libra ries: libs t dc + + libc6.1 - 1.s o.2: ca n n o t o pe n s h a re d o bject file: No s uc h file or directo ry
6/ Installing missing library
r o o t@xto p h e - la p t o p: / h o m e / x t o p h e # sudo apt­get install libstdc++2.10­
glibc2.2
7/ Creating the needed symbolic link
r o o t@xto p h e - la p t o p: / h o m e / x t o p h e # sudo ln ­s /usr/lib/libstdc++­3­
libc6.2­2­2.10.0.so /usr/lib/libstdc++­libc6.1­1.so.2
8/ Creating the user User1
r o o t@xto p h e - la p t o p: / h o m e / x t o p h e # /usr/lib/ViaVoice/bin/vvsetuser
Please e n t e r t h e ViaVoice UserNa m e [defa ult: ViaVoice User1]
Please wait, crea ting u s e r ViaVoice User1
/ u s r / lib /ViaVoice / bi n / vvset u se r: line 4 4: / vv u se r: Aucu n fichier o u ré pe r t oire d e
ce ty p e
NB. New err or if yo u h ave forgot te n t o s e t t he e nviro n m e n t
9/ Environment setting :
r o o t@xto p h e - la p t o p: / h o m e / x t o p h e # . vvsetenv
10/ Creating a user :
r o o t@xto p h e - la p t o p: / h o m e / x t o p h e # /usr/lib/ViaVoice/bin/vvsetuser
Ins talling ViaVoice a n d xvoice o n Ubu n t u Gutsy gibbo n
p age 3 / 1 1
Please e n t e r t h e ViaVoice UserNa m e [defa ult: ViaVoice User1]
Please wait, crea ting u s e r ViaVoice User1
11/ Testing the audio
java com.ibm.speechapps.userwizard.UWizAudSet
NB. This line is extracte d fro m t he vvst ar t a u dio se t u p scrip t.
You s h o ul d get t his.
If yo u click o n n ext :
Ins talling ViaVoice a n d xvoice o n Ubu n t u Gutsy gibbo n
p age 4 / 1 1
If yo u click o n n ext twice.
Ins talling ViaVoice a n d xvoice o n Ubu n t u Gutsy gibbo n
p age 5 / 1 1
12/ Starting the enrollment
java com.ibm.speechapps.userwizard.UWizJustEnr
NB. This line is extracte d fro m t he vvst ar te n r oll me n t scri p t.
Ins talling ViaVoice a n d xvoice o n Ubu n t u Gutsy gibbo n
p age 6 / 1 1
For eac h p a r t of t he e n roll m e n t yo u h ave t o rela u nc h :
java com.ibm.speechapps.userwizard.UWizJustEnr
If yo u r ea d all t h e s t o ries yo u will h ave a t raine d ViaVoice.
13/ Let us install xvoice (as nomarl user xtophe)
The s of tware versio n I've ins talle d ca n be fo u n d u si ng t his p age o r t h e n ext URL.
h t t p: / / t ai n t.org / w k /ViaVoiceModer nLin ux
wget http://jmason.org/software/xvoice/vv­xvoice.tar.gz
The official xvoice web site : h t t p: / / xvoice.so u rceforge.net /
14/ Let's see what is in the tar.gz file
xto p h e@xto p he - la p t o p: ~ $ tar ztvf vv­xvoice.tar.gz d r wxrwxr - x j m / j m
0 2 0 0 4 - 0 3 - 1 9 1 9:51 ViaVoice /lib / xvoice /
- rw - r - - r - - j m / j m
3 5 5 3 2 0 0 4 - 0 3 - 1 9 1 9:50 ViaVoice /lib / xvoice /vi mc m d s
Ins talling ViaVoice a n d xvoice o n Ubu n t u Gutsy gibbo n
p age 7 / 1 1
- rw - r - - r - - j m / j m
- rwxr - xr - x j m / j m
- rw - r - - r - - j m / j m
1 9 7 7 0 2 0 0 4 - 0 3 - 1 9 1 9:50 ViaVoice /lib / xvoice / xvoice.x ml
4 2 9 6 8 4 2 0 0 4 - 0 3 - 1 9 2 1:25 ViaVoice /lib / xvoice / xvoice
3 7 7 7 2 0 0 4 - 0 3 - 1 9 1 9:50 ViaVoice /lib / xvoice / xvoice.p ng
15/ We then untargzip it
xto p h e@xto p he - la p t o p: ~ $ tar zxvf vv­xvoice.tar.gz
ViaVoice /lib / xvoice /
ViaVoice /lib / xvoice / vi mc m d s
ViaVoice /lib / xvoice / xvoice.x ml
ViaVoice /lib / xvoice / xvoice
ViaVoice /lib / xvoice / xvoice.p ng
16/ Installing the program in /usr/bin
xto p h [email protected]: ~ $ sudo mv ViaVoice/lib/xvoice/xvoice /usr/bin/.
[su d o] p a s swo r d for xto p h e:
17/ Let's test xvoice and install the missing libraries
xto p h e@xto p he - la p t o p: ~ $ xvoice xvoice: er r o r w hile loa di ng s h a re d libraries: libgn o m e ui.so.32: ca n n o t o p e n s h a r e d
o bject file: No s uc h file o r directo ry
17a/ Installing missing library libgnomeui32
sudo apt­get install libgnomeui32
xto p h e@xto p he - la p t o p: ~ $ xvoice
xvoice: er r o r w hile loa di ng s h a re d libraries: libg dk_i mlib.so.1: ca n n o t o p e n s h a r e d
o bject file: No s uc h file o r directo ry
17b/ Installing missing libgdk_imlib.so.1
sudo apt­get install gdk­imlib1
xto p h e@xto p he - la p t o p: ~ $ xvoice
xvoice: relocatio n er ror: / u s r / lib / libvt b nfc31.so: sy m b ol err n o, versio n GLIBC_2.0
n o t d efine d in file libc.so.6 wit h link ti me refere nce
Ins talling ViaVoice a n d xvoice o n Ubu n t u Gutsy gibbo n
p age 8 / 1 1
18/ Installing a correct version of libvtbnfc31.so
This file ca n be o p t aine d t h r o ug h t h xvoice u s e r list. Once you h ave got it re place
t h e exis ting o ne (locatio n / u s r / lib / libvt b nfc31.s o).
19/ New test of xvoice
r o o t@xto p h e - la p t o p: / h o m e / x t o p h e # xvoice
Enviro n m e n t s e t.
Gno m eUI - WARNING **: While co n necting t o s e s sio n m a n age r:
Au t h e n tica tio n Rejecte d, rea s o n : None of t he a u t he n ticatio n p r o t ocols s p ecifie d
a re s u p p o r te d a n d h o s t - ba s e d a u t he n ticatio n faile d.
xvoice ver sio n 0.9.5
loa dGra m m a r s: Could n o t fin d xvoice.x ml; n o gra m m a r s will be available.
Looke d in:
/ r o o t /.xvoice / xvoice.x ml
/ u s r / l ocal / s h a re / xvoice / xvoice.x ml
. /xvoice.x ml
.. /xvoice.x ml
Ins talling ViaVoice a n d xvoice o n Ubu n t u Gutsy gibbo n
p age 9 / 1 1
Pro ble m : xvoice is n o t a ble t o fin d t he xvoice.x ml file in t h e directories in which it
is s eeking it.
20/ Copying the xvoice.xml file in the current directory
r o o t@xto p h e - la p t o p: / h o m e / x t o p h e # cp ViaVoice/lib/xvoice/xvoice.xml .
r o o t@xto p h e - la p t o p: / h o m e / x t o p h e # xvoice
Enviro n m e n t s e t.
Gno m eUI - WARNING **: While co n necting t o s e s sio n m a n age r:
Au t h e n tica tio n Rejecte d, rea s o n : None of t he a u t he n ticatio n p r o t ocols s p ecifie d
a re s u p p o r te d a n d h o s t - ba s e d a u t he n ticatio n faile d.
xvoice ver sio n 0.9.5
Load e d gra m m a r in . /xvoice.x ml
Ins talling ViaVoice a n d xvoice o n Ubu n t u Gutsy gibbo n
p age 1 0 / 1 1
You h ave n ow a r u n ni ng xvoice o n u b u n t u gu t sy.
NB. xvoice d oe s n o t work o n its ow n s o o pe n for exa m ple a ge dit win d ow
( > gedit), switch back t o xvoice, p u s h t he « Pus h t o t alk » b u t t o n a n d s ay « Next
win d ow » pl u s « dictate m o d e ». You ca n n ow dicta te.
Have f u n!!
Chris t o p h e
Ins talling ViaVoice a n d xvoice o n Ubu n t u Gutsy gibbo n
p age 1 1 / 1 1