Posts Tagged ‘Codetrain.scp’

modified the paths in codetrain.scp

Wednesday, January 14th, 2009

- modified the paths in codetrain.scp
- created wav_config
- cd voxforge31
- HCopy -A -D -T 1 -C wav_config -S codetrain.scp
->> error occured, probably the syntax “../sample1.wav ../sample1.mfc” is wrong
- trying “./sample1.wav ./sample1.mfc”
->> OK, it worked out

now I am having the following files
- codetrain.scp
- dict
- dlog
- global.ded
- mkphones0.led
- mkphones1.led
- monophones0
- monophones1
- phones0.mlf
- phones1.mlf
- prompts
- prompts2mlf
- prompts2wlist
- sample1.mfc
- sample1.wav
- VoxForgeDict
- wav_config
- wlist
- words.mlf

+++ +++
- created proto file
- created config file
- created/modified train.scp
- replacing ‘../train/mfcc/sample1.mfc’ with ‘./sample1.mfc’
- creating folder hmm0
- HCompV -A -D -T 1 -C config -f 0.01 -m -S train.scp -M hmm0 proto
- now I have /hmm0/proto and /hmm0/VFloors
- saved monophones0 in hmm0 folder
- putting phones in double quotes
- it looks like: ~h “ae”
~h “b”
monophones0-backup created, might need it again
- renaming monophones0 to hmmdefs
- copied the content of vFloors
- pasted it into an empty file
- saved it as macros
- copied the first three lines of proto
- paste them into macros at the beginning
- switching to voxforge31
- creating hmm1, hmm2, … , hmm9 folders
- HERest -A -D -T 1 -C config -I phones0.mlf -t 250.0 150.0 1000.0 -S train.scp -H hmm0/macros -H hmm0/hmmdefs -M hmm1 monophones0
->> Error occured
- Maybe train.scp is wrong – wrong content, changing “./sample1.mfc” to “../sample1.mfc”
->> Error again, replaced with ‘*/sample1.mfc’
->> didnt work out again, undo change

Create codetrain.scp

Sunday, January 11th, 2009

Now I want to create the file codetrain.scp. This is explained in Step 5. The goal is to convert wav files into MFCC files. I don’t know what exactly that means. But I hope to produce a result even though I don’t understand the meaning of the mel frequency cepstrum.

I need a file with the name wav_config. The conversion will be done by the HCopy command. But first, I have to record the sample files. This is explained in step 3. Which resolution and bitrate should I use? Does that matter? I will have to store the wav files in the correct directory.

I just created just two sample files: sample1.wav and sample2.wav. That should be enough for the moment. Now I have to adapt the codetrain.scp file for my needs. I will try it with the following content (blank line at the end of the document):

../sample1.wav ../sample1.mfc
../sample2.wav ../sample2.mfc

I just created the file wav_config. Now I am trying to execute the following command:

ubuntu@ubuntu-desktop:~$ HCopy -A -D -T 1 -C wav_config -S codetrain.scp

But an error message appears:

ERROR [+6210] OpenWaveInput: Cannot open waveform file ../sample1.wav

Maybe there is some kind of error with the paths. So I changed the content of the file codetrain.scp:

./sample1.wav ./sample1.mfc
./sample2.wav ./sample2.mfc

Now it seems to have worked. The files sample1.mfc and sample2.mfc have been created. I am happy that I am making progress.