Posts Tagged ‘git’

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.