Questo howto e’ qui grazie al dialogo avuto sulla spiaggia con un amico che purtroppo non usa il comando vocale per fare il “figo” come me, ma per necessita’. Purtroppo lo sviluppo delle tecnologie assistive soprattutto in Italia e’ sempre appannaggio di pochi speculatori che sviluppano solo per sistemi commerciali e a costi che in alcuni casi sono proibitivi. VENDERE SOFTWARE DI QUESTO TIPO E’ DA PEZZI DI MERDA E I GUADAGNI SU QUESTO TIPO DI TECNOLOGIE NON SONO GIUSTIFICABILI. Finita la piccola parentesi personale passiamo alla liberalizzazione :). Innanzitutto prendiamo possesso della macchina con il proverbiale
$ sudo su
Per Ubuntu fino alla versione lucid aggiungiamo i repository per recuperare i pacchetti necessari con
# add-apt-repository ppa:dhuggins/cmusphinx && apt-get clean && apt-get update
Da oneiric in poi
# cat "deb http://ppa.launchpad.net/dhuggins/cmusphinx/ubuntu lucid main deb-src http://ppa.launchpad.net/dhuggins/cmusphinx/ubuntu lucid main " >> /etc/apt/sources.list && apt-get clean && apt-get update
se vogliamo realmente usare il comando vocale dobbiamo inoltre installare
# apt-get install gstreamer0.10-pocketsphinx xdotool
creiamo una cartellina per lavorare
# mkdir tmp
a questo punto possiamo scaricare il nostro meraviglioso programmino
# wget http://voximp.googlecode.com/files/voximp-0.0.1.tar.gz
decomprimiamo con
# tar -xvzf voximp-0.0.1.tar.gz
adesso spostiamo il programma nella cartella giusta
# mv voximp.py /usr/bin/voximp
# cd sample_configs
# mv voximpconf.py.sample voximpconf.py
# mkdir ~/.config/voximp/
# cp * ~/.config/voximp/
e adesso dopo aver accuratamente premuto ctrl+d
$ voximp
e parlate liberamente al computer il quale ovviamente ora come ora non capirà altro che poche parole inglesi, ma la bellezza di questo programmino oltre alla leggerezza è l’uso di un modello vocale abbastanza diffuso ma soprattutto modificabile. Su questo sito potete contribuire a sviluppare un modello vocale italiano libero e usabile anche per programmi come sphinx e Julius. Per ora e’ tutto ma ci saranno aggiornamenti.
This howto here cause a dialogue was on the beach with a friend who unfortunately does not use the voice command to be “cool” like me, but out of necessity. Unfortunately, the development of assistive technology, and especially in Italy increasingly the preserve of a few speculators who develop trading systems and only for costs that are prohibitive in some cases. SALE OF THIS TYPE OF TECHNOLOGY IS BEHAVIOUR OF PIECES OF SHIT AND I CONSIDER THIS NOT JUSTIFICABLE. First This howto here cause a dialogue was on the beach with a friend who unfortunately does not use the voice command to be “cool” like me, but out of necessity. Unfortunately, the development of assistive technology, and especially in Italy increasingly the preserve of a few speculators who develop trading systems and only for costs that are prohibitive in some cases. SALE OF THIS TYPE OF TECHNOLOGY IS BEHAVIOUR OF PIECES OF SHIT AND I CONSIDER THIS NOT JUSTIFICABLE. First This howto here cause a dialogue was on the beach with a friend who unfortunately does not use the voice command to be “cool” like me, but out of necessity. Unfortunately, the development of assistive technology, and especially in Italy increasingly the preserve of a few speculators who develop trading systems and only for costs that are prohibitive in some cases. SALE OF THIS TYPE OF TECHNOLOGY IS BEHAVIOUR OF PIECES OF SHIT AND I CONSIDER THIS NOT JUSTIFICABLE. First
$ sudo su
For Ubuntu until lucid add some repository
# add-apt-repository ppa:dhuggins/cmusphinx
From oneiric onwards
# cat "deb http://ppa.launchpad.net/dhuggins/cmusphinx/ubuntu lucid main deb-src http://ppa.launchpad.net/dhuggins/cmusphinx/ubuntu lucid main " >> /etc/apt/sources.list && apt-get clean && apt-get update
and install the necessary dependencies
# apt-get install gstreamer0.10-pocketsphinx xdotool
make a work directory
# mkdir tmp
download the little magic program
# wget http://voximp.googlecode.com/files/voximp-0.0.1.tar.gz
uncompress it with
# tar -xvzf voximp-0.0.1.tar.gz
move the program in the right directory
# mv voximp.py /usr/bin/voximp # cd sample_configs # mv voximpconf.py.sample voximpconf.py # mkdir ~/.config/voximp/ # cp * ~/.config/voximp/
leave the root shell with ctrl+d and
$ voximp
Speak to your pc and he will understand (something) Stay tuned and may the source be with you.