Posts Tagged ‘training.data’

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.

I changed the field Test-Prompts

Tuesday, August 11th, 2009

After reading these instructions, I created the file /home/liberty/.kde/share/apps/simon/model/prompts_test. It has the following content:

Hamburgern_S2_2009-07-19_22-44-21 HAMBURGERN
aufgenommen_S2_2009-07-25_11-36-59 AUFGENOMMEN
Fraktionen_S1_2009-07-19_19-33-01 FRAKTIONEN
breiteren_S2_2009-07-24_15-23-54 BREITEREN
Expansionen_S2_2009-07-19_18-05-20 EXPANSIONEN
Hannovers_S2_2009-07-19_23-07-09 HANNOVERS
Hannovers_S1_2009-07-19_23-07-02 HANNOVERS

Then I changed the input file for the field Test-Prompts:

test-prompts

The path for the wav prompts and the wav test prompts is the same.

Here is a small excerpt from the log (emphasis by me):

/usr/bin/sox -2 -s -L /home/liberty/.kde/share/apps/simon/model/training.data//Hamburgern_S2_2009-07-19_22-44-21.wav /home/liberty/.kde/tmp-liberty-desktop/sam/internalsamuser/test/samples/Hamburgern_S2_2009-07-19_22-44-21.wav

The wav files that are mentioned by prompts_test are being copied to a sub-folder of internalsamuser. This is a temporary folder.

And this is the test result:

sentences