Development Environment
From SIMON
If you finish this tutorial, you will get a fully functional simon version and the coresponding source files which you of course can modify freely.
To publish your changes, please get in touch with a simon developer to receive write access to the public git repository.
Contents |
Windows
The following tutorial will describe how to install everything needed to get started on developing on simon.
KDE
- Please download the newest KDE-on-Windows-installer from windows.kde.org. You need the file kdewin-installer-gui-latest.exe.
- Please install the downloaded executable '
kdewin-installer-gui-latest.exe'. - You may get a security warning: "
The publisher could not be verified. Are you sure you want to run the software?" Please press the 'Run' button. - You are being guided through the KDE for Windows installer. Press the '
Next >' button. - Please select the directory where you want to install KDE applications. This guide will assume it is '
C:\KDE'. Press the 'Next >' button. - Please choose as 'Install Mode' the option 'Package Manager'. The compiler mode has to be 'MinGW4'. Press the '
Next >' button. - Please select the directory where the packages are stored for the installation. Press the '
Next >' button. - Choose the option 'I have a direct connection to the Internet'. Press the '
Next >' button. - Now select the download server from where you want to download KDE packages. We recommend the winkde.org mirror. Press the '
Next >' button. - From the available releases, please choose the stable release with the highest number. At the moment, this is version 4.2.0. Press the '
Next >' button. - Please select the packages you would like to install. You have to select the check boxes (in the 'Bin/Devel/Doc' column) of the following packages:
- aspell (bin)
- aspell-de (bin)
- aspell-en (bin)
- attica (bin/dev)
- automoc (bin)
- boost (bin)
- bzip2 (bin)
- cmake (bin)
- cyrus-sasl (bin)
- dbg_x86 (bin)
- dbus (bin)
- debugview (bin)
- exiv2 (bin)
- expat (bin)
- flex (bin / dev)
- gdb (bin)
- gettext (bin)
- gettext-tools (bin)
- giflib (bin)
- gzip (bin)
- iconv (bin)
- jasper (bin)
- jpeg (bin)
- kdebase-apps (bin)
- kdebase-runtime (bin)
- kdelibs (bin/dev)
- kdepimlibs (bin)
- kdewin (bin/dev)
- libbzip2 (bin)
- libical (bin)
- libpng (bin)
- libxml2 (bin)
- libxslt (bin)
- mingw-utils (bin)
- openssl (bin)
- oxygen-icons (bin)
- patch (bin)
- pcre (bin)
- phonon (bin/dev)
- phonon-backends (bin)
- qca (bin)
- qimjageblitz (bin)
- qt (bin/dev)
- runtime (bin)
- shared-mime-info (bin)
- soprano (bin)
- strigi (bin)
- taglib (bin)
- tiff (bin)
- upx (bin)
- zlib (bin/dev)
- For simon to work correctly you need QtMultimedia 4.6.3 which might need to be installed seperately (at the time of this writing the last version in the KDE installer is Qt 4.6.2).
- Select "Next" and the Installer will display another list of packages that were selected automatically because they are needed by the manually selected packages. Select "Next" to continue.
- The installer will now download the packages.
- After all packages are loaded the installation will begin automatically. Some of the packages need user interaction to be installed (the order can vary):
- MinGW: If the installer asks if it should check for newer versions of the package, select "No"! During the selection of the components select "MinGW Base Tools", "g++ compiler" and "MinGW Make". All other settings can be left at their default values. MinGW will now be loaded and installed.
- The rest of the packages will be installed automatically (silently).
- Download TortoiseGit (http://code.google.com/p/tortoisegit/downloads/list) and install it to C:\rogram Files\TortoiseGit
- Download MSysGit (http://code.google.com/p/msysgit/downloads/list) and install it to C:\Git
- Now open the "System settings" by pressing and holding the "Windows"-key and simultaniously pressing the "Pause"-key.
- Go to the "Advanced" tab and select "Environment variables".
- Look for the "Path" entry in the "System variables" list and double-click it.
- You can now change the value of this variable. Do not replace the content but add the following at the end of the line: ";C:\KDE\bin;C:\MinGW\bin;C:\Git\bin" and press "Ok".
- You can close the dialogs now.
- Download and install the Visual C Runtime from Microsoft: http://www.microsoft.com/downloads/details.aspx?familyID=32bc1bee-a3f9-4c13-9c99-220b62a191ee&displaylang=en
- Now open the file "C:\KDE\share\apps\cmake\modules\KDELibsDependencies.cmake" with a text editor (like notepad: "Editor").
- Press and hold down the "Control"-key and simultaniously press the "H" key to open the search and replace dialog. Enter "C:/kde/kde-mingw4" into the search field and enter "C:/KDE" into the "Replace with" field. Now select "Replace all" to replace all occurences.
- Save the file and close the editor.
- Now do the same with the file "C:\KDE\share\apps\cmake\modules\KDELibs4LibraryTargets-release.cmake".
- Restart your computer
This concludes the installation of KDE.
HTK
- Register at http://htk.eng.cam.ac.uk/register.shtml (free)
- Download the latest windows binary version from "http://htk.eng.cam.ac.uk/ftp/software/". The file will be named "htk-3.x-windows-binary.zip". At the moment the latest binary release for windows is the version 3.3. It can be found at this direct link: "http://htk.eng.cam.ac.uk/ftp/software/htk-3.3-windows-binary.zip"
- This archive contains a folder "htk". Copy the contents of this folder to "C:\KDE\bin".
- You can now delete the archive.
- This concludes the installation.
Portaudio
If you don't want to use sam or Julius directly, you can skip this step.
- Download the portaudio dll from "http://code.google.com/p/portaudiosharp/downloads/detail?name=PortAudio.dll&can=2&q=" and move it to the folder "C:\KDE\bin".
- Download the portaudio_x86.dll from "http://code.google.com/p/jpab/downloads/detail?name=portaudio_x86.dll&can=2&q=" and move it to the folder "C:\KDE\bin".
- Then download the latest portaudio snapshot version (NOT the "stable version") from "http://www.portaudio.com/download.html". Direct link: http://www.portaudio.com/archives/pa_snapshot.tar.gz
- Move this file to "C:\".
- Download the windows setup of 7-Zip from http://www.7-zip.org/download.html (Direct link of the current version: http://downloads.sourceforge.net/sevenzip/7z465.exe)
- Install 7-Zip using the downloaded installation file.
- Open the folder "C:\" with the windows explorer and right-click on the previously downloaded file "pa_snapshot.tar.gz" and select "7-Zip" > "Extract Here".
- This will create the file "pa_snapshot.tar". Right click this file and again select "7-Zip" > "Extract Here".
- This creates the folder "C:\portaudio".
- You can now delete the files "pa_snapshot.tar" and "pa_snapshot.tar.gz"
- This concludes the portaudio installation.
Bison
- Download the following DLLs and move them to the folder "C:\KDE\bin":
- "libintl3.dll" from "http://www.dsource.org/projects/dsss/browser/winbins/libintl3.dll?rev=45"(Direct link: "http://www.dsource.org/projects/dsss/browser/winbins/libintl3.dll?rev=45&format=raw")
- "libiconv2.dll" from "http://www.dsource.org/projects/dsss/browser/winbins/libiconv2.dll?rev=45" (Direct link: "http://www.dsource.org/projects/dsss/browser/winbins/libiconv2.dll?rev=45&format=raw")
- "libintl-2.dll" from "http://www.dsource.org/projects/dsss/browser/winbins/libintl-2.dll?rev=125" (Direct link: "http://www.dsource.org/projects/dsss/browser/winbins/libintl-2.dll?rev=125&format=raw")o:"
- Download regex2.dll from http://code.google.com/p/unwad/source/browse/trunk/dll/regex2.dll?spec=svn9&r=9 and copy it to the KDE binary folder (default: "C:\KDE\bin")
- Download the bison "Binaries" from "http://gnuwin32.sourceforge.net/packages/bison.htm" (Direct link: "http://downloads.sourceforge.net/gnuwin32/bison-2.4.1-bin.zip")
- Select the downloaded archive with the right mouse button and and choose "7-Zip" > "Extract files..."
- A dialog will be displayed. Change the "Extract to:" field to "C:\KDE" and select "Ok".
- This concludes the bison installation.
simon
The following section will describe how to install simon and simond. All paths should be correct if you followed the instructions above carefully.
Installation
- Open "C:\" and right-click at the background in order to get the context menu of the folder and select the option "Git Clone".
- Enter "git://speech2text.git.sourceforge.net/gitroot/speech2text/speech2text" for the checkout URL and "C:\simonsource" as "Checkout directory".
- Confirm that you want to create the folder "C:\simonsource".
- The current version of simon will now be downloaded. This can take a while.
- When Git has completed the checkout you can close the window.
- Now open a commando prompt by pressing and holding the "Windows"-key and pressing simultaniously pressing the "R" key. Enter "cmakesetup" in the resulting window and select "Ok".
- A dialog will be displayed. Enter "C:\simonsource" into the "Where is the source code:" field.
- Enter "C:\simonsource\build" into the field "Where to build the binaries:".
- Press "Configure".
- You will be prompted for the generator to use. Please select "MinGW Makefiles" from the list.
- simon will now be configured. This can take a few seconds.
- Change the value of "CMAKE_INSTALL_PREFIX" from "C:/simon" to "C:/KDE" and press "Enter" to apply the changes.
- Confirm by pressing "Ok".
- Open up a command prompt by pressing and holding the "Windows"-Key and simultaniously pressing the "R" key. In the resulting window enter "cmd" and confirm with "Ok".
- A black command prompt will open. Enter the following commands:
- cd C:\simonsource\build
- mingw32-make
- mingw32-make install
- You can now close the command prompt by entering "exit".
- simon is now compiled and installed to "C:\KDE". To start it just launch the program "C:\KDE\bin\simon.exe"
Update
- Open "C:\" with the windows explorer.
- Select the subfolder "simonsource" with your right mouse button. In the contextmenu select the option "Git Sync" and update your local repository copy.
- Open up a command prompt by pressing and holding the "Windows"-Key and simultaniously pressing the "R" key. In the resulting window enter "cmd" and confirm with "Ok".
- A black command prompt will open. Enter the following commands:
- cd C:\simonsource\build
- mingw32-make
- mingw32-make install
- You can now close the command prompt by entering "exit".
- This completes the update.
Linux
This guide will assume that you are using Ubuntu Linux or OpenSUSE. If you use a different distribution you will have to look up the correct name of the packages yourself and install them on your own.
This guide was tested on a clean, updated Ubuntu 8.10 Intrepid Ibex and Ubuntu 9.04 Jaunty Jackalope installation as well as a fresh OpenSUSE 11.1.
If you already installed the binary version of simon, please remove it!
Debian based Systems: sudo dpkg -r simon
Requirements
You will need a couple of packages before getting to work. Install them using the following command:
Debian based Systems: sudo apt-get install git-core build-essential cmake bison flex gettext gettext-kde kdeartwork \ kdelibs5-dev libxtst-dev libqt4-sql-sqlite libqt4-multimedia libqt4-phonon-dev libattica-dev libattica0 zlib1g-dev \ portaudio19-dev Note: You don't actually need kdeartwork to compile or run simon - it will just look ugly without it.
RPM based Systems: sudo zypper in git-core gcc bison flex gettext-tools gettext-runtime libkde4-devel portaudio \ portaudio-devel libqt4-sql-sqlite libqt4-multimedia libqt4-phonon-devel libattica-devel libattica0 zlib-devel
If you use a different language than english we recommend installing the appropriate kde-l10n package. You can list all available translation using the following command:
Debian based Systems: apt-cache search kde-l10n
Choose your translation and install it.
Debian based Systems: sudo apt-get install kde-l10n-<countrycode>
Compiling
Now check out a current copy of simon from svn using the following command:
git clone git://speech2text.git.sourceforge.net/gitroot/speech2text/speech2text simonsource
This will create a new directory called simonsource in your current working directory containing the simon source code.
You can now make your changes. If you want to compile and install your new simon version, just call the build-script in the simonsource directory:
Ubuntu: ./build_ubuntu.sh
Other distributions: ./build.sh
You now have compiled and installed simon. Please continue to install HTK on page Installation > Linux > HTK installation.

