Simon/Instal·lació

From KDE UserBase Wiki
Revision as of 21:59, 16 November 2012 by Abella (talk | contribs) (Created page with "Podeu trobar més informació sobre aquest procés en la [https://launchpad.net/+help/soyuz/ppa-sources-list.html documentació d'ubuntu].")
Other languages:

En les pàgines següents es descriu com podeu com un usuari final instal·lar i configurar Simon al vostre ordinador, de manera que podreu controlar el PC a través de la veu. Si us plau, consulteu el manual per a informació sobre com procedir després de la instal·lació.

Els desenvolupadors de programari seguiu la pàgina Configurar un entorn de desenvolupament.

Windows

  • Obtingueu la versió actual de Simon des de la nostra pàgina de Sourceforge. Assegureu-vos de descarregar la versió per a Windows de Simon -que conté «win32» en el seu nom i acaba amb «.exe»-.
  • Executeu l'assistent d'instal·lació per instal·lar Simon. Si no esteu segur en algun moment durant la instal·lació podeu mantenir els valors per omissió.

Instal·lar HTK

Si voleu entrenar el vostre model acústic també és necessari HTK. Si voleu utilitzar un model base estàtic podeu ometre aquest pas.

Simon utilitza un programari anomenat Conjunt d'eines de model Markov ocult (Hidden Markov Model Toolkit -HTK-) per a generar el model de pronunciació. Aquest programari és gratuït, però la seva llicència prohibeix la seva distribució amb Simon.

  • Ara, registreu-vos a la pàgina inicial de HTK (és gratuït). Poc després d'introduir les dades del vostre compte rebreu un correu electrònic amb una contrasenya personal.
  • Descarregueu el HTK. Se us demanarà el nom d'usuari i la contrasenya.
  • Extraïeu HTK a la subcarpeta bin del directori d'instal·lació de Simon. El camí per omissió és C:\Program Files\Simon 0.3\bin. Els fitxers binaris de l'arxiu (HHEd.exe, HDMan.exe, etc.) s'han d'emmagatzemar directament en aquesta carpeta bin (per exemple, C:\Program Files\Simon 0.3\bin\HDMan.exe) i NO en una subcarpeta de bin.

Linux

Hi ha diverses maneres d'instal·lar Simon a linux. Els usuaris de sistemes basats en Debian hauríen d'utilitzar sempre el paquet de Debian i els usuaris de OpenSUSE hauríen d'utilitzar els paquets RPM, mentre que els usuaris d'altres distribucions hauran d'utilitzar el paquet binari general.

Per a una instal·lació des del codi font seguiu la pàgina Configurar un entorn de desenvolupament.

OpenSUSE

To install Simon on OpenSUSE, please use the official packages on the OpenSUSE Build Service that are provided by the Simon Listens team.

Simply search for Simon on the OpenSUSE Software search and install Simon using the one click installation link for your repository.

During installation Yast will offer to add the KDE:Unstable:Playground repository to your system which you should accept. This way you also get updates for Simon when we release new versions.

After completing the installation the Simon applications will be installed on your system. To also install translation and the handbook (recommended) install the simon-doc and simon-lang packages which will show up in your package manager automatically after adding the repository in the previous step. You can of course also download them manually using the software search (link above).

For OpenSUSE 11.3 the direct links are these:

Ubuntu

Per a Ubuntu utilitzeu sempre el repositori «ppa» mantingut per l'equip Simon Listens.

Per afegir el repositori al vostre sistema executeu les següents ordres a la línia d'ordres:

  1. sudo add-apt-repository ppa:simon-listens/releases
  2. sudo apt-get update

Podeu trobar més informació sobre aquest procés en la documentació d'ubuntu.

You can then install Simon with your package manager. Simon will be updated automatically when new versions are released through the systems update process.

Manual

  • Download the current installation file from our Sourceforge page. Select the file matching your architecture (i386/amd64) and your system (.deb/.rpm/.sh).
  • Install Simon using the just loaded installation file. If installation does not automatically start, you can use the following commands in a terminal:
cd <path_to_file>
Debian based Systems: (min. Ubuntu Intrepid Ibex (8.10))
sudo dpkg -i simon-<version>-<...>.deb
RPM based Systems:
sudo rpm -i simon-<version>-<...>.rpm
Generic Systems:
./simon-<version>-<...>.sh

Instal·lar HTK

If you want to train your acoustic model you also need the HTK. If you only want to use a static base model you can safely skip this step.

Simon uses a software called Hidden Markov Model Toolkit (HTK) to generate the speechmodel. This software is free of charge, but its license prohibits its distribution with Simon.

For Linux users HTK is only shipped as source code which means that you will have to compile HTK for yourself. Fortunately, this is quite easy.

Before we can install HTK, we have to install its dependencies. Please install the following packages:

  • ALSA Development files
  • X11 Development files
  • Buildsystem with Compiler and Linker (mostly called "build-essential" or similar)
Debian based Systems:
sudo apt-get install build-essential libx11-dev libasound2-dev
  • Now please register at the HTK homepage (it's free). Shortly after you entered your account details you should receive an e-mail containing your personal HTK-password.
  • Download the most recent HTK sourcecode (HTK-<version>.tar.gz). You will be asked your username and HTK-password.
  • To extract, configure, build and install the downloaded Tarball, execute the following commands in a terminal:
cd <camí_al_fitxer>
tar xvf HTK-<versió>.tar.gz
cd htk/
64bit-Systems only!
Remove all appearances of -m32 in configure.ac and run autoconf!
./configure
make
sudo make install