Simon/Installation/uk: Difference between revisions

From KDE UserBase Wiki
(Created page with "* Виконайте видобування HTK до підтеки виконуваних файлів встановленого вами пакунка Simon. Типови...")
(Created page with "Існує декілька способів встановлення Simon у linux. Користувачі заснованих на debian дистрибутивів маю...")
Line 26: Line 26:
== Linux ==
== Linux ==


There are several ways to install Simon on linux. Users of debian based systems should use the provided debian package and users of OpenSUSE should use the RPM packages while users of other distributions should use the general binary package.
Існує декілька способів встановлення Simon у linux. Користувачі заснованих на debian дистрибутивів мають скористатися відповідним пакунком для debian, а користувачам OpenSUSE варто скористатися пакунками RPM. Користувачі ж інших дистрибутивів мають використовувати загальний бінарний пакунок.


For an installation from sourcecode please follow page [[Special:myLanguage/Simon/Development Environment|Setting up A Development Environment]].
For an installation from sourcecode please follow page [[Special:myLanguage/Simon/Development Environment|Setting up A Development Environment]].

Revision as of 18:49, 13 December 2012

Other languages:

Нижче наведено опис того, яким чином ви, як користувач, можете встановити і налаштувати Simon на вашому комп’ютері з метою керування ним за допомогою голосових команд. Настанови щодо подальших дій після встановлення наведено на сторінці підручника.

Розробникам варто ознайомитися зі сторінкою Налаштовування середовища для розробки.

Windows

  • Отримайте поточну версію Simon з нашої сторінки на Sourceforge. Переконайтеся, що вами отримати саме версію для Windows, — у назві відповідного файла має бути частина «win32», а суфіксом назви має бути «.exe».
  • Запустіть отриманий файл, щоб встановити Simon. Якщо під час встановлення ви не певні щодо деяких відповідей на питання програми-майстра, не змінюйте типових значень.

Встановлення HTK

Якщо ви бажаєте навчати програму вашій акустичній моделі, вам знадобиться HTK. Якщо ви використовуватимете лише статичну базову модель, ви можете безпечно пропустити цей крок.

Для створення моделей мовлення у Simon використовується програмний комплекс Hidden Markov Model Toolkit (HTK). Цей програмний комплекс є безкоштовним, але умови його ліцензування не дають змогу розповсюджувати його разом з Simon.

  • Далі, будь ласка, зареєструйтеся на домашній сторінці HTK (реєстрація є безкоштовною). Невдовзі після введення параметрів вашого облікового запису ви маєте отримати повідомлення електронної пошти, у якому міститиметься ваш особистий пароль до HTK.
  • Звантажте HTK. Під час звантаження вам слід вказати ваше ім’я користувача та пароль до HTK.
  • Виконайте видобування HTK до підтеки виконуваних файлів встановленого вами пакунка Simon. Типовим шляхом до такої теки є C:\Program Files\Simon 0.3\bin. Виконувані файли з архіву (HHEd.exe, HDMan.exe тощо) має бути збережено безпосередньо до цієї теки (тобто шлях до них має виглядати так: C:\Program Files\Simon 0.3\bin\HDMan.exe), а не до якоїсь з підтек bin.

Linux

Існує декілька способів встановлення Simon у linux. Користувачі заснованих на debian дистрибутивів мають скористатися відповідним пакунком для debian, а користувачам OpenSUSE варто скористатися пакунками RPM. Користувачі ж інших дистрибутивів мають використовувати загальний бінарний пакунок.

For an installation from sourcecode please follow page Setting up A Development Environment.

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

For Ubuntu please use the provided ppa repository maintained by the Simon Listens team.

To add the repository to your system execute the following commands in a command line:

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

You can find more information about this process in the ubuntu documentation.

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

Вручну

  • 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 <шлях до файла>
Debian based Systems: (min. Ubuntu Intrepid Ibex (8.10))
sudo dpkg -i simon-<version>-<...>.deb
RPM based Systems:
sudo rpm -i simon-<version>-<...>.rpm
Інші системи:
./simon-<версія>-<...>.sh

Встановлення 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 <шлях до файла>
tar xvf HTK-<version>.tar.gz
cd htk/
64bit-Systems only!
Remove all appearances of -m32 in configure.ac and run autoconf!
./configure
make
sudo make install