Wednesday, August 19, 2015

HMM Def Error

Error:
At the time of running: HCompV -C config_files/config_feature -f 0.01 -m -S flist -M hmm_GMV protos/proto_3s_2m

I am getting following error. Please see what would be possible solution.


HMM Def Error: <Mean> symbol expected in GetMean at line 6/col 11/char 130 in protos/proto_5s_2m
  ERROR [+7050]  HMError:
HMM Def Error: GetMean Failed at line 6/col 12/char 131 in protos/proto_5s_2m
  ERROR [+7050]  HMError:
HMM Def Error: Regression Class Number expected at line 7/col 0/char 132 in protos/proto_5s_2m
  ERROR [+7050]  HMError:
HMM Def Error: GetMixtures failed at line 7/col 1/char 133 in protos/proto_5s_2m
  ERROR [+7050]  HMError:
HMM Def Error: Get Stream Information failed at line 7/col 2/char 134 in protos/proto_5s_2m
  ERROR [+7050]  HMError:
HMM Def Error: GetStream failed at line 7/col 3/char 135 in protos/proto_5s_2m
  ERROR [+7050]  HMError:
HMM Def Error: GetStateInfo failed at line 7/col 4/char 136 in protos/proto_5s_2m
  ERROR [+7050]  HMError:
  ERROR [+7032]  LoadHMMSet: GetHMMDef failed
  ERROR [+2028]  Initialise: LoadHMMSet failed



Wednesday, August 12, 2015

esignal.c:974: error: ‘ARCH’ undeclared (first use in this function)

Error: esignal.c:974: error: 'ARCH' undeclared (first use in this function)


Solution:

  1. Open the HTKLib/esignal.c file in a code-friendly text editor. You can use Xcode, or my personal favorite TextMate 2.
  2. Find and change the below lines:

    Change Line 974: if (strcmp(architecture, ARCH) == 0) /* native architecture */

    To: if (strcmp(architecture, "darwin") == 0) /* native architecture */

    Change Line 1184: ` architecture = ARCH;`

    To: ` architecture = "darwin";`

  3. Now, let's build! Run make all in the terminal window

Source: http://linguisticmystic.com/page4/

How to install x11 in cent OS

Error: HGraf.c:118:77: error: X11/Xlib.h: No such file or directory

solution: https://ask.fedoraproject.org/en/question/27815/cant-compile-with-xlib/

If you're trying to determine what package has a header file, you can either run:

repoquery -qf /usr/include/X11/Xlib.h

(that will tell you what package has that file, you do need to know the full path, but it is usually pretty obvious)

Or, if you just want to install the package with that header file:

yum install /usr/include/X11/Xlib.h

Yum can do that because it has filelists_db in the extended repodata. :)

Tuesday, August 11, 2015

sox FAIL formats: can't open input file `text1c.wav': No such file or directory


Command: sox text1.wav -r 16000 text1b.wav resample

Error: sox FAIL formats: can't open input file `text1c.wav': No such file or directory

Solution: 
remove word 'resample' from command. Use the following:

sox text1.wav -r 16000 text1b.wav 

sox FAIL sox: Input files must have the same sample-rate

Command: sox text1.wav -r 16000 text1b.wav resample

Error: sox FAIL sox: Input files must have the same sample-rate

Solution: 
remove word 'resample' from command. Use the following:

sox text1.wav -r 16000 text1b.wav