After compiling the code, you will have to setup the tutorial by copying all relevant executables and scripts to the same area as the data. Assuming your current working directory is tutorial, you will need to do the following.
cd SphinxTrain
If you installed AN4
perl scripts_pl/setup_tutorial.pl an4"
That should read,
perl scripts_pl/setup_tutorial.pl ../an4
Cheers,
Dave
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
However, the decode fails (in the following I interrupt after a couple of seconds):
svn/sphinx/tutorial/an4# perl scripts_pl/decode/slave.pl
MODULE: DECODE Decoding using models previously trained
Decoding 130 segments starting at 0 (part 1 of 1)
Using files: 0% ERROR: ERROR: "../fwd.c", line 2520: an406-fcaw-b: NO RECOGNITION
ERROR: ERROR: "../main.c", line 1163: an406-fcaw-b: Viterbi search failed
ERROR: ERROR: "../fwd.c", line 2520: an407-fcaw-b: NO RECOGNITION
ERROR: ERROR: "../main.c", line 1163: an407-fcaw-b: Viterbi search failed
ERROR: ERROR: "../fwd.c", line 2520: an408-fcaw-b: NO RECOGNITION
ERROR: ERROR: "../main.c", line 1163: an408-fcaw-b: Viterbi search failed
ERROR: ERROR: "../fwd.c", line 2520: an409-fcaw-b: NO RECOGNITION
ERROR: ERROR: "../main.c", line 1163: an409-fcaw-b: Viterbi search failed
SENTENCE ERROR: 100.000% (4/4) WORD ERROR RATE: 100.000% (20/20)
This is linux amd64.
When I try to set up a new task, I get this:
~/software/svn/sphinx/tutorial/an4# perl scripts_pl/copy_setup.pl -task tna
Making basic directory structure
Copying executables from /home/tna/software/svn/sphinx/tutorial/SphinxTrain/bin.x86_64-unknown-linux-gnu
Generating SphinxTrain specific scripts and config file
Set up for acoustic training for tna complete
Unknown option: s3flatdir
Cheers,
David
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
sphinx2 is fast but obsolete semi-continuous decoder (more for command and control programs)
sphinx3 is a continuous decoder (you need it)
sphinx3flat is the old version of sphinx3 with flat search (more precise, but currently you can get the same with -fwdflat yes option)
So just download sphinxbase and sphinx3 and compile them. Then copy sphinx3_decode to bin directory.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
At http://www.speech.cs.cmu.edu/sphinx/tutorial.html#setup it says,
"Tutorial Setup
After compiling the code, you will have to setup the tutorial by copying all relevant executables and scripts to the same area as the data. Assuming your current working directory is tutorial, you will need to do the following.
cd SphinxTrain
If you installed AN4
perl scripts_pl/setup_tutorial.pl an4"
That should read,
perl scripts_pl/setup_tutorial.pl ../an4
Cheers,
Dave
Sorry, scratch that -- I finally got this working!
I installed s3flat from svn and ran these from an4 without errors:
perl scripts_pl/make_feats.pl -ctl etc/an4_train.fileids
perl scripts_pl/RunAll.pl
perl scripts_pl/make_feats.pl -ctl etc/an4_test.fileids
However, the decode fails (in the following I interrupt after a couple of seconds):
svn/sphinx/tutorial/an4# perl scripts_pl/decode/slave.pl
MODULE: DECODE Decoding using models previously trained
Decoding 130 segments starting at 0 (part 1 of 1)
Using files: 0% ERROR: ERROR: "../fwd.c", line 2520: an406-fcaw-b: NO RECOGNITION
ERROR: ERROR: "../main.c", line 1163: an406-fcaw-b: Viterbi search failed
ERROR: ERROR: "../fwd.c", line 2520: an407-fcaw-b: NO RECOGNITION
ERROR: ERROR: "../main.c", line 1163: an407-fcaw-b: Viterbi search failed
ERROR: ERROR: "../fwd.c", line 2520: an408-fcaw-b: NO RECOGNITION
ERROR: ERROR: "../main.c", line 1163: an408-fcaw-b: Viterbi search failed
ERROR: ERROR: "../fwd.c", line 2520: an409-fcaw-b: NO RECOGNITION
ERROR: ERROR: "../main.c", line 1163: an409-fcaw-b: Viterbi search failed
SENTENCE ERROR: 100.000% (4/4) WORD ERROR RATE: 100.000% (20/20)
This is linux amd64.
When I try to set up a new task, I get this:
~/software/svn/sphinx/tutorial/an4# perl scripts_pl/copy_setup.pl -task tna
Making basic directory structure
Copying executables from /home/tna/software/svn/sphinx/tutorial/SphinxTrain/bin.x86_64-unknown-linux-gnu
Generating SphinxTrain specific scripts and config file
Set up for acoustic training for tna complete
Unknown option: s3flatdir
Cheers,
David
try usual sphinx3 without flat first. And look into decoding log if you need more precise description of the problem. It's in logdir/decode.
thanks -- the log says this right before it fails:
INFO: ../main.c(1224): Processing ctl file /home/tna/software/svn/sphinx/tutorial/an4/etc/an4_test.fileids
WARNING: "../main.c", line 1252: No -matchsegfn argument
Does this look familiar?
On which version to use: I'm running Debian sid, which has
libsphinx2-dev 0.6-2
libsphinx2g0 0.6-2
sphinx2-bin 0.6-2
sphinx2-hmm-6k 0.6-2
What's the status of this compared to s3flat and sphinx3? I'm decoding recordings from television news programs.
Cheers,
Dave
sphinx2 is fast but obsolete semi-continuous decoder (more for command and control programs)
sphinx3 is a continuous decoder (you need it)
sphinx3flat is the old version of sphinx3 with flat search (more precise, but currently you can get the same with -fwdflat yes option)
So just download sphinxbase and sphinx3 and compile them. Then copy sphinx3_decode to bin directory.
I did a fresh install of everything, using svn sphinx3 this time, and got everything working!
How do you feed the engine your own audio files? Which formats does it accept?
The student tutorial at http://www.speech.cs.cmu.edu/sphinx/tutorial.html doesn't say.
Are there instructions for the general user somewhere?
Cheers,
David
Great, congratulations
Usually sphinx require 16 kHz mono wave. Use sox to convert audio for example.