build.sh

May 17th, 2012 by producer

1. With build.sh you start. What is the difference between build.sh and build_ubuntu.sh?

2. What is the sence of cleandirs.sh?

(hyperlink by me)

3. In the Commands folder are the different plugins. Until now, I am just using the dictation plugin.

scripts

May 17th, 2012 by producer

There are many scripts that I could investigate.

1. Obviously, these scripts are used internally.

2. This is a very cryptic script:

cat $1 | sed -e 's/^.* //g' | sed -e 's/ /\n/g'| sort | uniq

(hyperlink added by me)

3. This script prepare.sh invokes several other scripts.

4. Obviously, the script split_stereo.sh splits stereo wav files into two mono wav files.

5. This script copies the model to another folder.

6. This script sets something to uppercase.

7. Let’s take a look into the simon folder.

8. The conf folder is probably not so interesting.

9. The model folder contains various interesting files.

10. Here are the phonemes that are used by simon.

Node 03: convert wav file with sox

August 23rd, 2009 by producer

liberty@liberty-desktop:~/.kde/share/apps/simon/model/samtestwav.data$ sox de27-02.wav -r 16000 -c 1 -s de27-02-test.wav

found similar entry here

I hope to be able to convert with sox from 48100 and 22050 to 16.000
why was there a different file size when converting 16000 hertz file to 16000 hertz file?

Node 01: simonview.ui

August 1st, 2009 by producer

01 simonview.ui – looking at the file with Qt Creator, and Geany.
03 /usr/include/simon/simonrecognitionresult/recognitionresult.h
file:///usr/include/simon/simonrecognitionresult/simonrecognitionresult_export.h
– don’t read again
04 file:///usr/include/simon/simonactions/commandlistwidget.h
file:///usr/include/simon/simonactions/greedyreceiver.h
05 file:///usr/include/simon/simonactions/listcommand.h
file:///usr/include/simon/speechmodelmanagement/wordlisttype.h

06 file:///home/liberty/200908/speech2text/trunk/simonlib/speechgui/addserverconnection.cpp
file:///home/liberty/200908/speech2text/trunk/simonlib/speechgui/addserverconnectiondlg.ui – open with Qt Creator
file:///home/liberty/200908/speech2text/trunk/simonlib/speechgui/addserverconnection.h view with geany

07 file:///home/liberty/200908/speech2text/trunk/simonlib/speechgui/inlinewidget.cpp
file:///home/liberty/200908/speech2text/trunk/simonlib/speechgui/inlinewidget.h – could continue to read about classes in the c++ tutorial – c++ node 02

08 build_ubuntu.sh – reading the log http://pastebin.com/m4d269fb5 – continue with line 371

09 file:///home/liberty/200908/speech2text/trunk/simonlib/simonmodeltest/CMakeLists.txt – read two times

10 /usr/share/kde4/apps/simon/model/wav_config
file:///usr/share/kde4/apps/simon/model/tree1.hed – continue with line 132

Dates in configure simon

July 13th, 2009 by producer

I just looked into the folder /home/liberty/.kde/share/apps/simond/models/a/src:

synchronisation

You can compare the folders above with the dates in configure simon:

configure

Obviously, the previous speech models are stored in /home/liberty/.kde/share/apps/simond/models/a/src.

HHEd and the ModelCompilationManager

May 23rd, 2009 by producer

Here is a code snippet from the modelcompilationmanager.cpp:

bool ModelCompilationManager::buildHMM10()
{
return execute(‘”‘+hHEd+”\” -A -D -T 1 -H \”"+htkIfyPath(tempDir)+”/hmm9/macros\” -H \”"+htkIfyPath(tempDir)+”/hmm9/hmmdefs\” -M \”"+htkIfyPath(tempDir)+”/hmm10/\” \”"+htkIfyPath(tempDir)+”/mktri.hed\” \”"+htkIfyPath(tempDir)+”/monophones1\”");
}

I have marked some things in the code snippet. Take a look into HHEd/Use if you want to know what
- the -A -D – T 1 means (probably standard options)
- the -H switch means (load macro file)
- the -H switch means (again)
- the -M switch means (store output in this directory)
- mktri.hed (this is probably the edCmdFile containing some commands)
- monophones1 (probably defines a set of HMMs)

modelcompilationmanager.cpp and HERest

May 23rd, 2009 by producer

Let’s take a look into the file modelcompilationmanager.cpp:

herest

You can see that the tool HERest is beeing invoked. The passing of the arguments -A -D -V -T 1 obviously guarantees that sufficient information is available (registration needed).

Obviously, there are several tools that are accessed by simon: HDMan, HLEd, HCopy, HCompV, HERest, HHEd, and HVite. These tools are not part of simon, you have to install them separately.