How - to install ViaVoice runtime and x v oice on Ubuntu Gutsy 386
V0.1 / Fev 11, 2008chris top he.klopp(at)free.fr Gutsy Gibbon (7.10)
This docu ment is licensed u n der t he Attribution -NonCom mercial 2.0 France license, available a t h t t p: / / c rea tivecom m ons.org / licenses / by -nc / 2.0 / f r / .
This docu ment p resent s one way to ins tall IBM ViaVoice for linux on Ubuntu
Table of Contents1 / Prerequis ts .................................................................................................................................. 12 / Ins talling java 1.6......................................................................................................................13 / Ins talling the ViaVoice rp m ..................................................................................................24 / Setting the ViaVoice environ ment with vvsetenv........................................................... 25 / Creating a u ser User1.............................................................................................................. 36 / Ins talling missing library....................................................................................................... 37 / Creating the needed symbolic link......................................................................................38 / Creating the u ser User1.......................................................................................................... 39 / Environ ment se t ting :.............................................................................................................. 310 / Creating a u ser :......................................................................................................................311 / Testing the au dio....................................................................................................................412 / Star ting the enrollmen t ........................................................................................................ 613 / Let us ins tall xvoice (as no marl u ser xtophe)................................................................714 / Let's see what is in t he tar.gz file .....................................................................................715 / We then u n targzip it ............................................................................................................ 816 / Ins talling the p rogra m in / u s r / bin................................................................................... 817 / Let's te s t xvoice an d ins tall t he missing libraries .......................................................817a / Installing missing library libgno meui32....................................................................... 817b / Ins talling missing libgdk_imlib.so.1.............................................................................. 818 / Ins talling a correct version of libvtbnfc31.so................................................................919 / New tes t of xvoice.................................................................................................................. 920 / Copying the xvoice.xml file in t he cur ren t directory................................................10
The u nix com ma n ds are p resented u sing the « courrier fon t »
1/ Prerequists
To have access to a copy of t he ViaVoice_run time - 3.0 - 1.2.i386.rp m.
2/ Installing java 1.6
sudo aptget update
Ins talling ViaVoice and xvoice on Ubuntu Gutsy gibbon page 1 / 11
sudo aptget install sunjava6jre
3/ Installing the ViaVoice rpm
sudo aptget updatesudo aptget install aliensudo alien ViaVoice_runtime3.01.2.i386.rpmsudo dpkg i viavoiceruntime3.02.2.deb
From now on we will work as root. This can be do ne with « s u do su »
4/ Setting the ViaVoice environment with vvsetenv
root@xtophe - laptop: / ho me /x tophe# . vvsetenv
Ins talling ViaVoice and xvoice on Ubuntu Gutsy gibbon page 2 / 11
5/ Creating a user User1
root@xtophe - laptop: / ho me /x tophe#/usr/lib/ViaVoice/bin/vvsetuser
NB. You will get an error because a library is mis sing
Please enter t he ViaVoice UserName [default: ViaVoice User1]
Please wait, crea ting u ser ViaVoice User1/ u s r / lib /ViaVoice / bin /vvuser: error while loading s hared libraries: libs tdc + + -libc6.1 - 1.so.2: canno t open s hared object file: No s uch file or directory
6/ Installing missing libraryroot@xtophe - laptop: / ho me /x tophe# sudo aptget install libstdc++2.10glibc2.2
7/ Creating the needed symbolic linkroot@xtophe - laptop: / ho me /x tophe# sudo ln s /usr/lib/libstdc++3libc6.222.10.0.so /usr/lib/libstdc++libc6.11.so.2
8/ Creating the user User1
root@xtophe - laptop: / ho me /x tophe# /usr/lib/ViaVoice/bin/vvsetuserPlease enter t he ViaVoice UserName [default: ViaVoice User1]
Please wait, crea ting u ser ViaVoice User1/ u s r / lib /ViaVoice / bin /vvsetuser: line 44: / vvuser: Aucun fichier ou réper toire de ce type
NB. New error if you have forgot ten to se t t he environ ment
9/ Environment setting :
root@xtophe - laptop: / ho me /x tophe# . vvsetenv
10/ Creating a user :
root@xtophe - laptop: / ho me /x tophe# /usr/lib/ViaVoice/bin/vvsetuser
Ins talling ViaVoice and xvoice on Ubuntu Gutsy gibbon page 3 / 11
Please enter t he ViaVoice UserName [default: ViaVoice User1]
Please wait, crea ting u ser ViaVoice User1
11/ Testing the audio
java com.ibm.speechapps.userwizard.UWizAudSet
NB. This line is extracted fro m the vvstar taudiose tup scrip t.
You s hould get t his.
If you click on next :
Ins talling ViaVoice and xvoice on Ubuntu Gutsy gibbon page 4 / 11
If you click on next twice.
Ins talling ViaVoice and xvoice on Ubuntu Gutsy gibbon page 5 / 11
12/ Starting the enrollment
java com.ibm.speechapps.userwizard.UWizJustEnr
NB. This line is extracted fro m the vvstar ten rollmen t scrip t.
Ins talling ViaVoice and xvoice on Ubuntu Gutsy gibbon page 6 / 11
For each par t of t he enrollment you have to relaunch :java com.ibm.speechapps.userwizard.UWizJustEnr
If you read all t he s tories you will have a t rained ViaVoice.
13/ Let us install xvoice (as nomarl user xtophe)
The sof tware version I've ins talled can be foun d using this page or t he next URL.h t t p: / / t ain t.org /wk /ViaVoiceModernLinuxwget http://jmason.org/software/xvoice/vvxvoice.tar.gz
The official xvoice websi te : h t t p: / / xvoice.sourceforge.net /
14/ Let's see what is in the tar.gz file
xtophe@xtophe - laptop: ~ $ tar ztvf vvxvoice.tar.gz d rwxrwxr - x jm / j m 0 2004 - 03 - 19 19:51 ViaVoice / lib /xvoice /- rw - r - - r - - jm / j m 3553 2004 - 03 - 19 19:50 ViaVoice / lib /xvoice /vimc m ds
Installing ViaVoice and xvoice on Ubuntu Gutsy gibbon page 7 / 11
- rw - r - - r - - jm / j m 19770 2004 - 03 - 19 19:50 ViaVoice / lib /xvoice /xvoice.xml- rwxr - xr - x jm / j m 429684 2004 - 03 - 19 21:25 ViaVoice / lib /xvoice /xvoice- rw - r - - r - - jm / j m 3777 2004 - 03 - 19 19:50 ViaVoice / lib /xvoice /xvoice.png
15/ We then untargzip it
xtophe@xtophe - laptop: ~ $ tar zxvf vvxvoice.tar.gz ViaVoice / lib /xvoice /ViaVoice / lib /xvoice /vimc m dsViaVoice / lib /xvoice /xvoice.xmlViaVoice / lib /xvoice /xvoiceViaVoice / lib /xvoice /xvoice.png
16/ Installing the program in /usr/bin
[email protected]: ~ $ sudo mv ViaVoice/lib/xvoice/xvoice /usr/bin/.[sudo] password for xtophe:
17/ Let's test xvoice and install the missing libraries
xtophe@xtophe - laptop: ~ $ xvoice xvoice: error while loading s hared libraries: libgno meui.so.32: cannot open s hared object file: No s uch file or directory
17a/ Installing missing library libgnomeui32
sudo aptget install libgnomeui32
xtophe@xtophe - laptop: ~ $ xvoice xvoice: error while loading s hared libraries: libgdk_imlib.so.1: cannot open shared object file: No s uch file or directory
17b/ Installing missing libgdk_imlib.so.1
sudo aptget install gdkimlib1
xtophe@xtophe - laptop: ~ $ xvoicexvoice: relocation er ror: / u s r / lib / libvtbnfc31.so: symbol errno, version GLIBC_2.0 no t defined in file libc.so.6 with link time reference
Installing ViaVoice and xvoice on Ubuntu Gutsy gibbon page 8 / 11
18/ Installing a correct version of libvtbnfc31.soThis file can be op tained th rough th xvoice u ser list. Once you have got it replace t he exis ting one (location / u s r / lib / libvtbnfc31.so).
19/ New test of xvoice
root@xtophe - laptop: / ho me /x tophe# xvoiceEnviron ment se t.
GnomeUI - WARNING **: While connecting to session m a nager:Authentica tion Rejected, reason : None of t he au then tication p ro tocols s pecified are s u p por ted an d hos t - based au then tication failed.xvoice version 0.9.5loadGra m mars: Could no t find xvoice.xml; no gra m m ars will be available.Looked in:
/ r oo t / .xvoice /xvoice.xml/ u s r / local / s hare /xvoice /xvoice.xml. /xvoice.xml.. /xvoice.xml
Installing ViaVoice and xvoice on Ubuntu Gutsy gibbon page 9 / 11
Problem : xvoice is no t able to find the xvoice.xml file in t he directories in which it is seeking it.
20/ Copying the xvoice.xml file in the current directory
root@xtophe - laptop: / ho me /x tophe# cp ViaVoice/lib/xvoice/xvoice.xml .
root@xtophe - laptop: / ho me /x tophe# xvoiceEnviron ment se t.
GnomeUI - WARNING **: While connecting to session m a nager:Authentica tion Rejected, reason : None of t he au then tication p ro tocols s pecified are s u p por ted an d hos t - based au then tication failed.xvoice version 0.9.5Loaded gra m mar in . /xvoice.xml
Installing ViaVoice and xvoice on Ubuntu Gutsy gibbon page 10/ 11
You have now a run ning xvoice on ubu n t u gut sy.
NB. xvoice does no t work on its own so open for exam ple a gedit window (>gedit), switch back to xvoice, p us h the « Push to talk » bu t ton an d say « Next window » plus « dictate m o de ». You can now dicta te.
Have fun!!
Chris top he
Installing ViaVoice and xvoice on Ubuntu Gutsy gibbon page 11/ 11