Posts Tagged ‘git’

git clone the development version

Saturday, May 1st, 2010

I made a fresh install of Ubuntu 10.04 (because the upgrade from Ubuntu 9.10 to 10.04 introduced an error on my computer that I don’t know how to fix). This means that I have to git the simon development version via the Ubuntu terminal:

$ git clone git://speech2text.git.sourceforge.net/gitroot/speech2text/speech2text

And now:

ubuntu@ubuntu-desktop:~/Documents/201005/speech2text$ ./build_ubuntu.sh
./build_ubuntu.sh: line 6: cmake: command not found
touch: cannot touch `./julius/gramtools/mkdfa/mkfa-1.44-flex/*': No such file or directory
ubuntu@ubuntu-desktop:~/Documents/201005/speech2text$

Obviously, the command cmake is missing. I have to install it via the Ubuntu terminal:

ubuntu@ubuntu-desktop:~/Documents/201005/speech2text$ sudo apt-get install cmake

I am trying to install simon again, but the installation is failing again:

ubuntu@ubuntu-desktop:~/Documents/201005/speech2text$ ./build_ubuntu.sh
– The C compiler identification is GNU
– The CXX compiler identification is unknown
– Check for working C compiler: /usr/bin/gcc
– Check for working C compiler: /usr/bin/gcc — works
– Detecting C compiler ABI info
– Detecting C compiler ABI info – done
CMake Error: your CXX compiler: “CMAKE_CXX_COMPILER-NOTFOUND” was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error at cmake/FindPortaudio.cmake:63 (message):
Could not find Portaudio
Call Stack (most recent call first):
julius/libsent/CMakeLists.txt:2 (find_package)

– Configuring incomplete, errors occurred!
touch: cannot touch `./julius/gramtools/mkdfa/mkfa-1.44-flex/*’: No such file or directory
ubuntu@ubuntu-desktop:~/Documents/201005/speech2text$

I am reading this post. Is it necessary to add ppa:kubuntu-ppa/backports via System > Administration > Software Sources > Other Software, press Add...?

kubuntu-ppa-backports

Is it necessary to install ppa:kubuntu-ppa-backports as source when you have Ubuntu 10.04 installed?

I think that I should do something different, so I am trying System > Administration > Synaptic Package Manager. I am installing now portaudio19-dev via Synaptic. And now, a different problem occurs:

ubuntu@ubuntu-desktop:~/Documents/201005/speech2text$ ./build_ubuntu.sh
– The CXX compiler identification is unknown
CMake Error: your CXX compiler: “CMAKE_CXX_COMPILER-NOTFOUND” was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
– Found Portaudio: /usr/lib/libportaudio.so
CMake Error at cmake/FindZLIB.cmake:25 (MESSAGE):
Could not find ZLIB
Call Stack (most recent call first):
julius/libsent/CMakeLists.txt:3 (find_package)

– Configuring incomplete, errors occurred!
touch: cannot touch `./julius/gramtools/mkdfa/mkfa-1.44-flex/*’: No such file or directory
ubuntu@ubuntu-desktop:~/Documents/201005/speech2text$

I am now reading the requirements in the simon wiki. Maybe I should type the following command into the Ubuntu terminal:

sudo apt-get install subversion build-essential cmake bison flex gettext gettext-kde kdeartwork \
kdelibs5-dev portaudio19-dev libxtst-dev libqt4-sql-sqlite libqt4-phonon-dev julius libattica-dev libattica0

So, I have to wait a few minutes until these packages are installed. Then I try it again, but the ZLIB error still occurs. I am now installing zlibc via Synaptic, then try ./build_ubuntu.sh again, but the ZLIB error isn’t gone. I don’t know what to do now. What should I do next?

sam: Couldn’t open prompts file

Tuesday, January 26th, 2010

I want to use my German backup folder with sam. I have to choose the specific paths to the specific backup files:

user-generated

I am using the following path for the jconf file (I had to look into this blog post): /usr/share/kde4/apps/simond/default.jconf

This is the current content of the file /home/am3msi/Documents/201001/model/20100126-try-to-restore-german.sam:

/home/am3msi/Documents/201001/model/hmmdefs
/home/am3msi/Documents/201001/model/tiedlist
/home/am3msi/Documents/201001/model/model.dict
/home/am3msi/Documents/201001/model/model.dfa
/home/am3msi/Documents/201001/model/training.data/
/usr/share/kde4/apps/simond/default.jconf
/home/am3msi/Documents/201001/model/lexicon
/home/am3msi/Documents/201001/model/model.grammar
/home/am3msi/Documents/201001/model/model.voca
/home/am3msi/Documents/201001/model/prompts
/home/am3msi/Documents/201001/model/training.data/
/home/am3msi/Documents/201001/model/tree1.hed
/home/am3msi/Documents/201001/model/wav_config
16000
/home/am3msi/Documents/201001/model/prompts

Now, I click the Build model button.

build-log

1. I pressed the Build model button.
2. The Build log indicates that it worked out. Great. I assume that the previously existing files
/home/am3msi/Documents/201001/model/hmmdefs
/home/am3msi/Documents/201001/model/tiedlist
/home/am3msi/Documents/201001/model/model.dict
/home/am3msi/Documents/201001/model/model.dfa

have been replaced by new ones (probably with the identical content).

Now I want to test the model. So I press the Test model button. sam displays an error message:

Couldn’t open prompts file for reading: /home/am3msi/Documents/201001/model/training.data/

Why is that? What went wrong? Let’s take a look at the paths to the test files:
/home/am3msi/Documents/201001/model/training.data/
/usr/share/kde4/apps/simond/default.jconf
/home/am3msi/Documents/201001/model/prompts

The paths are correct. I am trying the following: I copy the prompts file to the training.data folder. But this didn’t solve my problem.

My guess is that there is a bug with sam. At least, it is possible to build a speech model with sam (from my German backup files). That is a good start. That means that my German wav recordings, my dictionary, my prompts aren’t lost.

My next step will be to take a closer look at simon. I will try to use my German backup files with simon. They worked with sam (only the Test model function failed, but the Build model function obviously worked). And I hope that they will work with simon, too.

Why git?

Monday, January 25th, 2010

simon moved to git. Why? Maybe this is the reason:

“Git is perfectly suited for Open Source projects: Just Fork it, commit your changes to your own Fork, and then ask the original project maintainer to pull your changes. With Git, this just works.”

Maybe I will learn how to create my own fork of simon? That would be great.

How can I use git? I installed Giggle, I installed qgit (both via Ubuntu Software Center). But it didn’t work out. Then I typed git into the Ubuntu terminal. I am still trying to find out how I can get simon from git://speech2text.git.sourceforge.net/gitroot/speech2text/speech2text.

I am trying $ git clone git://speech2text.git.sourceforge.net/gitroot/speech2text/speech2text. Now I should have the simon source code: Initialized empty Git repository in /home/am3msi/speech2text/.git/.

Now I could try to build simon. Should I uninstall my current simon version (svn version) from my computer first? I am trying to uninstall simon (svn version) from my computer:
am3msi@am3msi-desktop:~/Documents/201001/simonsource/build$ sudo make uninstall

It didn’t work out:

– Generating done
– Build files have been written to: /home/am3msi/Documents/201001/simonsource/build
Scanning dependencies of target uninstall
CMake Error at cmake_uninstall.cmake:2 (MESSAGE):
Cannot find install manifest:
“/home/am3msi/Documents/201001/simonsource/build/install_manifest.txt”

make[3]: *** [CMakeFiles/uninstall] Error 1
make[2]: *** [CMakeFiles/uninstall.dir/all] Error 2
make[1]: *** [CMakeFiles/uninstall.dir/rule] Error 2
make: *** [uninstall] Error 2
am3msi@am3msi-desktop:~/Documents/201001/simonsource/build$ sudo make uninstall

simon (svn version) is still installed on my computer. Is it possible to install simon (git version) even when there is already simon (svn version) installed? I will try it:
am3msi@am3msi-desktop:~/speech2text$ ./build_ubuntu.sh

I don’t know whether it is save to install simon again (the svn version is currently installed). But why not give it a try?

It looks good:

git

1. simon is available (and obviously working).
2. ksimond is two times available (and obviously working). I should be able to configure ksimond (great that this issue obviously has been fixed).
3. sam looks better now: Static model, Adapted base model – what is the difference? I hope that there will be a good documentation (sam handbook) available that explains what is meant.
4. sscd – it doesn’t open a window. So it doesn’t work.

My next step will be: trying to restore my German backup speech files.