Menu

Problem with sphinx3-simple application

Help
Anonymous
2003-04-17
2012-09-22
  • Anonymous

    Anonymous - 2003-04-17

    Hi,

    i am a totally new to sphinx. Just downloaded and compiled. I got the sphinx3-test working good. I tried the sphinx3-simple and it gives an error. I am printing the last few lines of maybe a thousand lines which scroll down when I run sphinx3-simple. Can anyone please help me run the first application where I can say something thru the microphone and the recognition gets done.
    Thanks alot for your help and
    Regards,
    zia

    INFO: subvq.c(273): Reading codebook
    INFO: subvq.c(293): Reading map
    INFO: subvq.c(271): Reading subvq 2
    INFO: subvq.c(273): Reading codebook
    INFO: subvq.c(293): Reading map
    INFO: subvq.c(103): Precomputing Mahalanobis distance invariants
    INFO: tmat.c(135): Reading HMM transition probability matrices: /usr/local/share
    /sphinx3/model/hmm/hub4_cd_continuous_8gau_1s_c_d_dd/transition_matrices
    ERROR: "tmat.c", line 197: Normalization failed for tmat 2 from state 0
    ERROR: "tmat.c", line 197: Normalization failed for tmat 2 from state 1
    ERROR: "tmat.c", line 197: Normalization failed for tmat 2 from state 2
    INFO: tmat.c(217): Read 48 transition matrices of size 3x4
    INFO: wid.c(92): 6 LM words not in dictionary; ignored
    INFO: dict2pid.c(254): Building PID tables for dictionary
    INFO: dict2pid.c(422): 873 composite states; 324 composite sseq
    INFO: kbcore.c(172): Verifying models consistency:
    INFO: kb.c(141): Building lextrees
    INFO: kb.c(207): Lextrees(3), 1428 nodes(ug), 1 nodes(filler)
    INFO: kb.c(229): Beam= -460509, PBeam= -383758, WBeam= -268630, SVQBeam= -15350
    INFO: vithist.c(71): Initializing Viterbi-history module
    A/D library not implemented
    FATAL_ERROR: "main_live_example.c", line 191: ad_open_sps failed

     
    • Anonymous

      Anonymous - 2003-04-17

      I can't help you in general with sphinx3, becaause I ise sphinx2.
        1. But you must have figured out that there's come kind of problem with your "transition_matrices" file, leading to those 3 ERROR lines.
        2. The INFO: wid.c(92) line illustrates a characteristic of Sphinx3 (and Sphinx2 also): if your language model contains words not in your dictionary, they are quietly ignored and will never be recognized.  So you might want to investigate what those 6 words might be.

       
      • Scott Silliman

        Scott Silliman - 2003-05-02

        As far as the \n instead of \r\n's, I remember that cygwin asks during install whether you want to use \r\n's or \n's for text files.  I chose \n's and don't have those problems, but still have the other problems you're encountering.

        as far as the ad_open_sps() failed, I'm thinking tha the following output from ./configure might have to do with it:

        checking build system type... i686-pc-cygwin
        checking host system type... i686-pc-cygwin
        No audio interface for host type i686-pc-cygwin.

        also, I see all sorts of msdev stuff in the win32 subdir, and I'm wondering if it might have to be compiled with VC++ in order access the audio interface or something. I hope not because I don't have VC++.

        Is anyone running livedecode in a cygwin environment? How about linux?  I'm only getting sphinx3-test to work in both environments, but sphinx3-simple is flaking in both cygwin and linux (ad_open_sps in win32, some other segfault in RH linux)?

         
    • Anonymous

      Anonymous - 2003-04-17

      Hi Jerry Wolf,

      Thanks a lot for the immediate reply. I tried to find out the 6 words as mentioned by you and eleminated the differences and I have the same entries in both an4.dict and an4.au.lm files respectively. I just executed the sphinx3-simple again and it gave me the same errors. Do I have to compile something here again for these changes to take affect or is it some thing else that is the problem.

      I was wondering what could this be like

      INFO: kb.c(229): Beam= -460509, PBeam= -383758, WBeam= -268630, SVQBeam= -15350
      INFO: vithist.c(71): Initializing Viterbi-history module
      A/D library not implemented
      FATAL_ERROR: "main_live_example.c", line 191: ad_open_sps failed

      What is this A/D library which has to be implemented ??

      Please me out of this.
      Thanks a lot and
      Regards,
      zia

       
    • Anonymous

      Anonymous - 2003-04-18

      Zia -- regarding your dictionary addition, no, you don't have to recompile anything.  The dictionary is data that is read in at run-time.

      I can offer no further help, since I work with Sphinx2, and I am not familiar with Sphinx3.  Someone else with Sphinx3 experience should be able to interpret those error log entries.  Good luck!

       
    • Anonymous

      Anonymous - 2003-04-18

      Hi JJ,

      Ok there ends the Sphinx3 installations for me. Now I downloaded Sphinx2
      and did the
      ./configure, then make , then make install in the c:/sphinx2-0.4 and finally
      executing sphinx2-test from the c:/sphinx2-0.4/scripts directory. I am using
      windows 2k and executing all these thru cygwin.
      I am getting the following errors .
      Please help me solve this problem and run a test sample.
      I appreciate your patience and Thanks a lot for your help.
      Regards,
      zia

      Its a huge screen of errors. DoI have to install something else or do I have
      to do some more commands what do I have to execute the demos example
      successfully.
      I figured there is a problem in the dictionaries. How do I solve what should
      I do?

      'RROR: "dict.c", line 705: 'THE(2)': Unknown phone 'AX
      ERROR: "dict.c", line 478: Failed to add THE(2) to dictionary
      ]hone_to_id: did not find [IY
      'RROR: "dict.c", line 705: 'THE(3)': Unknown phone 'IY
      ERROR: "dict.c", line 478: Failed to add THE(3) to dictionary
      ]hone_to_id: did not find [N
      'RROR: "dict.c", line 705: 'THEN': Unknown phone 'N
      ERROR: "dict.c", line 478: Failed to add THEN to dictionary
      ]hone_to_id: did not find [N
      'RROR: "dict.c", line 705: 'THIRTEEN': Unknown phone 'N
      ERROR: "dict.c", line 478: Failed to add THIRTEEN to dictionary
      ]hone_to_id: did not find [IY
      'RROR: "dict.c", line 705: 'THIRTY': Unknown phone 'IY
      ERROR: "dict.c", line 478: Failed to add THIRTY to dictionary
      ]hone_to_id: did not find [IY
      'RROR: "dict.c", line 705: 'THIRTY(2)': Unknown phone 'IY
      ERROR: "dict.c", line 478: Failed to add THIRTY(2) to dictionary
      ]hone_to_id: did not find [IY
      'RROR: "dict.c", line 705: 'THREE': Unknown phone 'IY
      ERROR: "dict.c", line 478: Failed to add THREE to dictionary
      ]hone_to_id: did not find [AX
      'RROR: "dict.c", line 705: 'TO': Unknown phone 'AX
      ERROR: "dict.c", line 478: Failed to add TO to dictionary
      ]hone_to_id: did not find [IX
      'RROR: "dict.c", line 705: 'TO(2)': Unknown phone 'IX
      ERROR: "dict.c", line 478: Failed to add TO(2) to dictionary
      ]hone_to_id: did not find [UW
      'RROR: "dict.c", line 705: 'TO(3)': Unknown phone 'UW
      ERROR: "dict.c", line 478: Failed to add TO(3) to dictionary
      ]hone_to_id: did not find [M
      'RROR: "dict.c", line 705: 'TOM': Unknown phone 'M
      ERROR: "dict.c", line 478: Failed to add TOM to dictionary
      ]hone_to_id: did not find [N
      'RROR: "dict.c", line 705: 'TURN': Unknown phone 'N
      ERROR: "dict.c", line 478: Failed to add TURN to dictionary
      ]hone_to_id: did not find [V
      'RROR: "dict.c", line 705: 'TWELVE': Unknown phone 'V
      ERROR: "dict.c", line 478: Failed to add TWELVE to dictionary
      ]hone_to_id: did not find [IY
      'RROR: "dict.c", line 705: 'TWENTY': Unknown phone 'IY
      ERROR: "dict.c", line 478: Failed to add TWENTY to dictionary
      ]hone_to_id: did not find [IY
      'RROR: "dict.c", line 705: 'TWENTY(2)': Unknown phone 'IY
      ERROR: "dict.c", line 478: Failed to add TWENTY(2) to dictionary
      ]hone_to_id: did not find [UW
      'RROR: "dict.c", line 705: 'TWO': Unknown phone 'UW
      ERROR: "dict.c", line 478: Failed to add TWO to dictionary
      ]hone_to_id: did not find [T
      'RROR: "dict.c", line 705: 'UNDERSTAND': Unknown phone 'T
      ERROR: "dict.c", line 478: Failed to add UNDERSTAND to dictionary
      ]hone_to_id: did not find [AXR
      'RROR: "dict.c", line 705: 'WANDER': Unknown phone 'AXR
      ERROR: "dict.c", line 478: Failed to add WANDER to dictionary
      ]hone_to_id: did not find [T
      'RROR: "dict.c", line 705: 'WHAT': Unknown phone 'T
      ERROR: "dict.c", line 478: Failed to add WHAT to dictionary
      ]hone_to_id: did not find [T
      'RROR: "dict.c", line 705: 'WHAT(2)': Unknown phone 'T
      ERROR: "dict.c", line 478: Failed to add WHAT(2) to dictionary
      ]hone_to_id: did not find [OW
      'RROR: "dict.c", line 705: 'WINDOW': Unknown phone 'OW
      ERROR: "dict.c", line 478: Failed to add WINDOW to dictionary
      ]hone_to_id: did not find [UW
      'RROR: "dict.c", line 705: 'YOU': Unknown phone 'UW
      ERROR: "dict.c", line 478: Failed to add YOU to dictionary
      INFO: dict.c(630):      0 = words in file [/usr/local/share/sphinx2/m
      tle/turtle.dic]
      FATAL_ERROR: "dict.c", line 637: Dictionary errors; cannot continue

       
    • Anonymous

      Anonymous - 2003-04-18

      Hi JJWolf,

      I am attaching the full data of error I am getting .

      sphinx2-test
      Run CMU Sphinx2 in Batch mode to decode an example utterance.

      sphinx2-continuous \ -verbose 9 \ -adcin TRUE \ -adcext 16k \ -ctlfn /usr/local/share/sphinx2/model/lm/turtle/turtle.ctl \ -ctloffset 0 \ -ctlcount 100000000 \ -datadir /usr/local/share/sphinx2/model/lm/turtle \ -agcmax TRUE \ -langwt 6.5 \ -fwdflatlw 8.5 \ -rescorelw 9.5 \ -ugwt 0.5 \ -fillpen 1e-10 \ -silpen 0.005 \ -inspen 0.65 \ -top 1 \ -topsenfrm 3 \ -topsenthresh \ -70000 \ -beam 2e-06 \ -npbeam 2e-06 \ -lpbeam 2e-05 \ -lponlybeam 0.0005 \ -nwbeam 0.0005 \ -fwdflat FALSE \ -fwdflatbeam 1e-08 \ -fwdflatnwbeam 0.0003 \ -bestpath TRUE \ -kbdumpdir /usr/local/share/sphinx2/model/lm/turtle \ -lmfn /usr/local/share/sphinx2/model/lm/turtle/turtle.lm \ -dictfn /usr/local/share/sphinx2/model/lm/turtle/turtle.dic \ -noisedict /usr/local/share/sphinx2/model/hmm/6k/noisedict \ -phnfn /usr/local/share/sphinx2/model/hmm/6k/phone \ -mapfn /usr/local/share/sphinx2/model/hmm/6k/map \ -hmmdir /usr/local/share/sphinx2/model/hmm/6k \ -hmmdirlist /usr/local/share/sphinx2/model/hmm/6k \ -8bsen TRUE \ -sendumpfn /usr/local/share/sphinx2/model/hmm/6k/sendump \ -cbdir /usr/local/share/sphinx2/model/hmm/6k

      dev1
      Fri Apr 18 11:23:17 PDT 2003

      INFO: fbs_main.c(1083): libfbs/main COMPILED ON: Apr 18 2003, AT: 09:36:27

      INFO: kb_main.c(332): kb_main.c(333): Reading phone file [/usr/local/share/sphin
      x2/model/hmm/6k/phone]
      INFO: phone.c(378): Using 0 phonological mappings
      INFO: kb_main.c(342): kb_main.c(342): Reading map file [/usr/local/share/sphinx2
      /model/hmm/6k/map]
      INFO: hmm_tied_r.c(1327): Read Map: 125716 phones map to 23355 unique senone seq
      uences
      INFO: kb_main.c(345): kb_main.c(346): Reading dict file [/usr/local/share/sphinx
      2/model/lm/turtle/turtle.dic]
      INFO: dict.c(464): dict_load: first line of /usr/local/share/sphinx2/model/lm/tu
      rtle/turtle.dic was A, expecting '!'
      INFO: dict.c(466): dict_load: will assume first line contains a word
      ]hone_to_id: did not find [AX
      'RROR: "dict.c", line 705: 'A': Unknown phone 'AX
      ERROR: "dict.c", line 478: Failed to add A to dictionary
      ]hone_to_id: did not find [EY
      'RROR: "dict.c", line 705: 'A(2)': Unknown phone 'EY
      ERROR: "dict.c", line 478: Failed to add A(2) to dictionary
      ]hone_to_id: did not find [T
      'RROR: "dict.c", line 705: 'AND': Unknown phone 'T
      ERROR: "dict.c", line 478: Failed to add AND to dictionary
      ]hone_to_id: did not find [T
      'RROR: "dict.c", line 705: 'AND(2)': Unknown phone 'T
      ERROR: "dict.c", line 478: Failed to add AND(2) to dictionary
      ]hone_to_id: did not find [R
      'RROR: "dict.c", line 705: 'ARE': Unknown phone 'R
      ERROR: "dict.c", line 478: Failed to add ARE to dictionary
      ]hone_to_id: did not find [AXR
      'RROR: "dict.c", line 705: 'ARE(2)': Unknown phone 'AXR
      ERROR: "dict.c", line 478: Failed to add ARE(2) to dictionary
      ]hone_to_id: did not find [N
      'RROR: "dict.c", line 705: 'AROUND': Unknown phone 'N
      ERROR: "dict.c", line 478: Failed to add AROUND to dictionary
      ]hone_to_id: did not find [T
      'RROR: "dict.c", line 705: 'AROUND(2)': Unknown phone 'T
      ERROR: "dict.c", line 478: Failed to add AROUND(2) to dictionary
      ]hone_to_id: did not find [T
      'RROR: "dict.c", line 705: 'BACKWARD': Unknown phone 'T
      ERROR: "dict.c", line 478: Failed to add BACKWARD to dictionary
      ]hone_to_id: did not find [Z
      'RROR: "dict.c", line 705: 'BACKWARDS': Unknown phone 'Z
      ERROR: "dict.c", line 478: Failed to add BACKWARDS to dictionary
      ]hone_to_id: did not find [AY
      'RROR: "dict.c", line 705: 'BYE': Unknown phone 'AY
      ERROR: "dict.c", line 478: Failed to add BYE to dictionary
      ]hone_to_id: did not find [AXR
      'RROR: "dict.c", line 705: 'CENTIMETER': Unknown phone 'AXR
      ERROR: "dict.c", line 478: Failed to add CENTIMETER to dictionary
      ]hone_to_id: did not find [Z
      'RROR: "dict.c", line 705: 'CENTIMETERS': Unknown phone 'Z
      ERROR: "dict.c", line 478: Failed to add CENTIMETERS to dictionary
      ]hone_to_id: did not find [S
      'RROR: "dict.c", line 705: 'CHASE': Unknown phone 'S
      ERROR: "dict.c", line 478: Failed to add CHASE to dictionary
      ]hone_to_id: did not find [AXR
      'RROR: "dict.c", line 705: 'COLOR': Unknown phone 'AXR
      ERROR: "dict.c", line 478: Failed to add COLOR to dictionary
      ]hone_to_id: did not find [AXR
      'RROR: "dict.c", line 705: 'COLOR(2)': Unknown phone 'AXR
      ERROR: "dict.c", line 478: Failed to add COLOR(2) to dictionary
      ]hone_to_id: did not find [Z
      'RROR: "dict.c", line 705: 'DEGREES': Unknown phone 'Z
      ERROR: "dict.c", line 478: Failed to add DEGREES to dictionary
      ]hone_to_id: did not find [EY
      'RROR: "dict.c", line 705: 'DISPLAY': Unknown phone 'EY
      ERROR: "dict.c", line 478: Failed to add DISPLAY to dictionary
      ]hone_to_id: did not find [UW
      'RROR: "dict.c", line 705: 'DO': Unknown phone 'UW
      ERROR: "dict.c", line 478: Failed to add DO to dictionary
      ]hone_to_id: did not find [NG
      'RROR: "dict.c", line 705: 'DOING': Unknown phone 'NG
      ERROR: "dict.c", line 478: Failed to add DOING to dictionary
      ]hone_to_id: did not find [T
      'RROR: "dict.c", line 705: 'EIGHT': Unknown phone 'T
      ERROR: "dict.c", line 478: Failed to add EIGHT to dictionary
      ]hone_to_id: did not find [N
      'RROR: "dict.c", line 705: 'EIGHTEEN': Unknown phone 'N
      ERROR: "dict.c", line 478: Failed to add EIGHTEEN to dictionary
      ]hone_to_id: did not find [IY
      'RROR: "dict.c", line 705: 'EIGHTY': Unknown phone 'IY
      ERROR: "dict.c", line 478: Failed to add EIGHTY to dictionary
      ]hone_to_id: did not find [N
      'RROR: "dict.c", line 705: 'ELEVEN': Unknown phone 'N
      ERROR: "dict.c", line 478: Failed to add ELEVEN to dictionary
      ]hone_to_id: did not find [N
      'RROR: "dict.c", line 705: 'ELEVEN(2)': Unknown phone 'N
      ERROR: "dict.c", line 478: Failed to add ELEVEN(2) to dictionary
      ]hone_to_id: did not find [T
      'RROR: "dict.c", line 705: 'EXIT': Unknown phone 'T
      ERROR: "dict.c", line 478: Failed to add EXIT to dictionary
      ]hone_to_id: did not find [T
      'RROR: "dict.c", line 705: 'EXIT(2)': Unknown phone 'T
      ERROR: "dict.c", line 478: Failed to add EXIT(2) to dictionary
      ]hone_to_id: did not find [R
      'RROR: "dict.c", line 705: 'EXPLORE': Unknown phone 'R
      ERROR: "dict.c", line 478: Failed to add EXPLORE to dictionary
      ]hone_to_id: did not find [N
      'RROR: "dict.c", line 705: 'FIFTEEN': Unknown phone 'N
      ERROR: "dict.c", line 478: Failed to add FIFTEEN to dictionary
      ]hone_to_id: did not find [IY
      'RROR: "dict.c", line 705: 'FIFTY': Unknown phone 'IY
      ERROR: "dict.c", line 478: Failed to add FIFTY to dictionary
      ]hone_to_id: did not find [T
      'RROR: "dict.c", line 705: 'FIND': Unknown phone 'T
      ERROR: "dict.c", line 478: Failed to add FIND to dictionary
      ]hone_to_id: did not find [SH
      'RROR: "dict.c", line 705: 'FINISH': Unknown phone 'SH
      ERROR: "dict.c", line 478: Failed to add FINISH to dictionary
      ]hone_to_id: did not find [V
      'RROR: "dict.c", line 705: 'FIVE': Unknown phone 'V
      ERROR: "dict.c", line 478: Failed to add FIVE to dictionary
      ]hone_to_id: did not find [IY
      'RROR: "dict.c", line 705: 'FORTY': Unknown phone 'IY
      ERROR: "dict.c", line 478: Failed to add FORTY to dictionary
      ]hone_to_id: did not find [T
      'RROR: "dict.c", line 705: 'FORWARD': Unknown phone 'T
      ERROR: "dict.c", line 478: Failed to add FORWARD to dictionary
      ]hone_to_id: did not find [R
      'RROR: "dict.c", line 705: 'FOUR': Unknown phone 'R
      ERROR: "dict.c", line 478: Failed to add FOUR to dictionary
      ]hone_to_id: did not find [N
      'RROR: "dict.c", line 705: 'FOURTEEN': Unknown phone 'N
      ERROR: "dict.c", line 478: Failed to add FOURTEEN to dictionary
      ]hone_to_id: did not find [OW
      'RROR: "dict.c", line 705: 'GO': Unknown phone 'OW
      ERROR: "dict.c", line 478: Failed to add GO to dictionary
      ]hone_to_id: did not find [EY
      'RROR: "dict.c", line 705: 'GREY': Unknown phone 'EY
      ERROR: "dict.c", line 478: Failed to add GREY to dictionary
      ]hone_to_id: did not find [T
      'RROR: "dict.c", line 705: 'GUARD': Unknown phone 'T
      ERROR: "dict.c", line 478: Failed to add GUARD to dictionary
      ]hone_to_id: did not find [F
      'RROR: "dict.c", line 705: 'HALF': Unknown phone 'F
      ERROR: "dict.c", line 478: Failed to add HALF to dictionary
      ]hone_to_id: did not find [L
      'RROR: "dict.c", line 705: 'HALL': Unknown phone 'L
      ERROR: "dict.c", line 478: Failed to add HALL to dictionary
      ]hone_to_id: did not find [EY
      'RROR: "dict.c", line 705: 'HALLWAY': Unknown phone 'EY
      ERROR: "dict.c", line 478: Failed to add HALLWAY to dictionary
      ]hone_to_id: did not find [T
      'RROR: "dict.c", line 705: 'HALT': Unknown phone 'T
      ERROR: "dict.c", line 478: Failed to add HALT to dictionary
      ]hone_to_id: did not find [OW
      'RROR: "dict.c", line 705: 'HELLO': Unknown phone 'OW
      ERROR: "dict.c", line 478: Failed to add HELLO to dictionary
      ]hone_to_id: did not find [OW
      'RROR: "dict.c", line 705: 'HELLO(2)': Unknown phone 'OW
      ERROR: "dict.c", line 478: Failed to add HELLO(2) to dictionary
      ]hone_to_id: did not find [M
      'RROR: "dict.c", line 705: 'HOME': Unknown phone 'M
      ERROR: "dict.c", line 478: Failed to add HOME to dictionary
      ]hone_to_id: did not find [T
      'RROR: "dict.c", line 705: 'HUNDRED': Unknown phone 'T
      ERROR: "dict.c", line 478: Failed to add HUNDRED to dictionary
      ]hone_to_id: did not find [T
      'RROR: "dict.c", line 705: 'HUNDRED(2)': Unknown phone 'T
      ERROR: "dict.c", line 478: Failed to add HUNDRED(2) to dictionary
      ]hone_to_id: did not find [T
      'RROR: "dict.c", line 705: 'HUNDRED(3)': Unknown phone 'T
      ERROR: "dict.c", line 478: Failed to add HUNDRED(3) to dictionary
      ]hone_to_id: did not find [N
      'RROR: "dict.c", line 705: 'KEVIN': Unknown phone 'N
      ERROR: "dict.c", line 478: Failed to add KEVIN to dictionary
      ]hone_to_id: did not find [T
      'RROR: "dict.c", line 705: 'LAB': Unknown phone 'T
      ERROR: "dict.c", line 478: Failed to add LAB to dictionary
      ]hone_to_id: did not find [T
      'RROR: "dict.c", line 705: 'LEFT': Unknown phone 'T
      ERROR: "dict.c", line 478: Failed to add LEFT to dictionary
      ]hone_to_id: did not find [NG
      'RROR: "dict.c", line 705: 'LISTENING': Unknown phone 'NG
      ERROR: "dict.c", line 478: Failed to add LISTENING to dictionary
      ]hone_to_id: did not find [NG
      'RROR: "dict.c", line 705: 'LISTENING(2)': Unknown phone 'NG
      ERROR: "dict.c", line 478: Failed to add LISTENING(2) to dictionary
      ]hone_to_id: did not find [T
      'RROR: "dict.c", line 705: 'LOST': Unknown phone 'T
      ERROR: "dict.c", line 478: Failed to add LOST to dictionary
      ]hone_to_id: did not find [AXR
      'RROR: "dict.c", line 705: 'METER': Unknown phone 'AXR
      ERROR: "dict.c", line 478: Failed to add METER to dictionary
      ]hone_to_id: did not find [Z
      'RROR: "dict.c", line 705: 'METERS': Unknown phone 'Z
      ERROR: "dict.c", line 478: Failed to add METERS to dictionary
      ]hone_to_id: did not find [S
      'RROR: "dict.c", line 705: 'MINUS': Unknown phone 'S
      ERROR: "dict.c", line 478: Failed to add MINUS to dictionary
      ]hone_to_id: did not find [N
      'RROR: "dict.c", line 705: 'NINE': Unknown phone 'N
      ERROR: "dict.c", line 478: Failed to add NINE to dictionary
      ]hone_to_id: did not find [N
      'RROR: "dict.c", line 705: 'NINETEEN': Unknown phone 'N
      ERROR: "dict.c", line 478: Failed to add NINETEEN to dictionary
      ]hone_to_id: did not find [IY
      'RROR: "dict.c", line 705: 'NINETY': Unknown phone 'IY
      ERROR: "dict.c", line 478: Failed to add NINETY to dictionary
      ]hone_to_id: did not find [S
      'RROR: "dict.c", line 705: 'OFFICE': Unknown phone 'S
      ERROR: "dict.c", line 478: Failed to add OFFICE to dictionary
      ]hone_to_id: did not find [N
      'RROR: "dict.c", line 705: 'ONE': Unknown phone 'N
      ERROR: "dict.c", line 478: Failed to add ONE to dictionary
      ]hone_to_id: did not find [N
      'RROR: "dict.c", line 705: 'ONE(2)': Unknown phone 'N
      ERROR: "dict.c", line 478: Failed to add ONE(2) to dictionary
      ]hone_to_id: did not find [N
      'RROR: "dict.c", line 705: 'PERSON': Unknown phone 'N
      ERROR: "dict.c", line 478: Failed to add PERSON to dictionary
      ]hone_to_id: did not find [AXR
      ERROR: "dict.c", line 705: 'QUARTER': Unknown phone 'AXR
      ERROR: "dict.c", line 478: Failed to add QUARTER(2) to dictionary
      ]hone_to_id: did not find [Z
      'RROR: "dict.c", line 705: 'QUARTERS': Unknown phone 'Z
      ERROR: "dict.c", line 478: Failed to add QUARTERS to dictionary
      ]hone_to_id: did not find [T
      'RROR: "dict.c", line 705: 'QUIT': Unknown phone 'T
      ERROR: "dict.c", line 478: Failed to add QUIT to dictionary
      ]hone_to_id: did not find [IY
      'RROR: "dict.c", line 705: 'READY': Unknown phone 'IY
      ERROR: "dict.c", line 478: Failed to add READY to dictionary
      ]hone_to_id: did not find [T
      'RROR: "dict.c", line 705: 'REID': Unknown phone 'T
      ERROR: "dict.c", line 478: Failed to add REID to dictionary
      ]hone_to_id: did not find [T
      'RROR: "dict.c", line 705: 'RIGHT': Unknown phone 'T
      ERROR: "dict.c", line 478: Failed to add RIGHT to dictionary
      ]hone_to_id: did not find [N
      'RROR: "dict.c", line 705: 'ROBOMAN': Unknown phone 'N
      ERROR: "dict.c", line 478: Failed to add ROBOMAN to dictionary
      ]hone_to_id: did not find [M
      'RROR: "dict.c", line 705: 'ROOM': Unknown phone 'M
      ERROR: "dict.c", line 478: Failed to add ROOM to dictionary
      ]hone_to_id: did not find [T
      'RROR: "dict.c", line 705: 'ROTATE': Unknown phone 'T
      ERROR: "dict.c", line 478: Failed to add ROTATE to dictionary
      ]hone_to_id: did not find [EY
      'RROR: "dict.c", line 705: 'SAY': Unknown phone 'EY
      ERROR: "dict.c", line 478: Failed to add SAY to dictionary
      ]hone_to_id: did not find [N
      'RROR: "dict.c", line 705: 'SEBASTIAN': Unknown phone 'N
      ERROR: "dict.c", line 478: Failed to add SEBASTIAN to dictionary
      ]hone_to_id: did not find [N
      'RROR: "dict.c", line 705: 'SEVEN': Unknown phone 'N
      ERROR: "dict.c", line 478: Failed to add SEVEN to dictionary
      ]hone_to_id: did not find [N
      'RROR: "dict.c", line 705: 'SEVENTEEN': Unknown phone 'N
      ERROR: "dict.c", line 478: Failed to add SEVENTEEN to dictionary
      ]hone_to_id: did not find [IY
      'RROR: "dict.c", line 705: 'SEVENTY': Unknown phone 'IY
      ERROR: "dict.c", line 478: Failed to add SEVENTY to dictionary
      ]hone_to_id: did not find [IY
      'RROR: "dict.c", line 705: 'SEVENTY(2)': Unknown phone 'IY
      ERROR: "dict.c", line 478: Failed to add SEVENTY(2) to dictionary
      ]hone_to_id: did not find [S
      'RROR: "dict.c", line 705: 'SIX': Unknown phone 'S
      ERROR: "dict.c", line 478: Failed to add SIX to dictionary
      ]hone_to_id: did not find [N
      'RROR: "dict.c", line 705: 'SIXTEEN': Unknown phone 'N
      ERROR: "dict.c", line 478: Failed to add SIXTEEN to dictionary
      ]hone_to_id: did not find [N
      'RROR: "dict.c", line 705: 'SIXTEEN(2)': Unknown phone 'N
      ERROR: "dict.c", line 478: Failed to add SIXTEEN(2) to dictionary
      ]hone_to_id: did not find [IY
      'RROR: "dict.c", line 705: 'SIXTY': Unknown phone 'IY
      ERROR: "dict.c", line 478: Failed to add SIXTY to dictionary
      ]hone_to_id: did not find [T
      'RROR: "dict.c", line 705: 'STOP': Unknown phone 'T
      ERROR: "dict.c", line 478: Failed to add STOP to dictionary
      ]hone_to_id: did not find [N
      'RROR: "dict.c", line 705: 'TEN': Unknown phone 'N
      ERROR: "dict.c", line 478: Failed to add TEN to dictionary
      ]hone_to_id: did not find [AH
      'RROR: "dict.c", line 705: 'THE': Unknown phone 'AH
      ERROR: "dict.c", line 478: Failed to add THE to dictionary
      ]hone_to_id: did not find [AX
      'RROR: "dict.c", line 705: 'THE(2)': Unknown phone 'AX
      ERROR: "dict.c", line 478: Failed to add THE(2) to dictionary
      ]hone_to_id: did not find [IY
      'RROR: "dict.c", line 705: 'THE(3)': Unknown phone 'IY
      ERROR: "dict.c", line 478: Failed to add THE(3) to dictionary
      ]hone_to_id: did not find [N
      'RROR: "dict.c", line 705: 'THEN': Unknown phone 'N
      ERROR: "dict.c", line 478: Failed to add THEN to dictionary
      ]hone_to_id: did not find [N
      'RROR: "dict.c", line 705: 'THIRTEEN': Unknown phone 'N
      ERROR: "dict.c", line 478: Failed to add THIRTEEN to dictionary
      ]hone_to_id: did not find [IY
      'RROR: "dict.c", line 705: 'THIRTY': Unknown phone 'IY
      ERROR: "dict.c", line 478: Failed to add THIRTY to dictionary
      ]hone_to_id: did not find [IY
      'RROR: "dict.c", line 705: 'THIRTY(2)': Unknown phone 'IY
      ERROR: "dict.c", line 478: Failed to add THIRTY(2) to dictionary
      ]hone_to_id: did not find [IY
      'RROR: "dict.c", line 705: 'THREE': Unknown phone 'IY
      ERROR: "dict.c", line 478: Failed to add THREE to dictionary
      ]hone_to_id: did not find [AX
      'RROR: "dict.c", line 705: 'TO': Unknown phone 'AX
      ERROR: "dict.c", line 478: Failed to add TO to dictionary
      ]hone_to_id: did not find [IX
      'RROR: "dict.c", line 705: 'TO(2)': Unknown phone 'IX
      ERROR: "dict.c", line 478: Failed to add TO(2) to dictionary
      ]hone_to_id: did not find [UW
      'RROR: "dict.c", line 705: 'TO(3)': Unknown phone 'UW
      ERROR: "dict.c", line 478: Failed to add TO(3) to dictionary
      ]hone_to_id: did not find [M
      'RROR: "dict.c", line 705: 'TOM': Unknown phone 'M
      ERROR: "dict.c", line 478: Failed to add TOM to dictionary
      ]hone_to_id: did not find [N
      'RROR: "dict.c", line 705: 'TURN': Unknown phone 'N
      ERROR: "dict.c", line 478: Failed to add TURN to dictionary
      ]hone_to_id: did not find [V
      'RROR: "dict.c", line 705: 'TWELVE': Unknown phone 'V
      ERROR: "dict.c", line 478: Failed to add TWELVE to dictionary
      ]hone_to_id: did not find [IY
      'RROR: "dict.c", line 705: 'TWENTY': Unknown phone 'IY
      ERROR: "dict.c", line 478: Failed to add TWENTY to dictionary
      ]hone_to_id: did not find [IY
      'RROR: "dict.c", line 705: 'TWENTY(2)': Unknown phone 'IY
      ERROR: "dict.c", line 478: Failed to add TWENTY(2) to dictionary
      ]hone_to_id: did not find [UW
      'RROR: "dict.c", line 705: 'TWO': Unknown phone 'UW
      ERROR: "dict.c", line 478: Failed to add TWO to dictionary
      ]hone_to_id: did not find [T
      'RROR: "dict.c", line 705: 'UNDERSTAND': Unknown phone 'T
      ERROR: "dict.c", line 478: Failed to add UNDERSTAND to dictionary
      ]hone_to_id: did not find [AXR
      'RROR: "dict.c", line 705: 'WANDER': Unknown phone 'AXR
      ERROR: "dict.c", line 478: Failed to add WANDER to dictionary
      ]hone_to_id: did not find [T
      'RROR: "dict.c", line 705: 'WHAT': Unknown phone 'T
      ERROR: "dict.c", line 478: Failed to add WHAT to dictionary
      ]hone_to_id: did not find [T
      'RROR: "dict.c", line 705: 'WHAT(2)': Unknown phone 'T
      ERROR: "dict.c", line 478: Failed to add WHAT(2) to dictionary
      ]hone_to_id: did not find [OW
      'RROR: "dict.c", line 705: 'WINDOW': Unknown phone 'OW
      ERROR: "dict.c", line 478: Failed to add WINDOW to dictionary
      ]hone_to_id: did not find [UW
      'RROR: "dict.c", line 705: 'YOU': Unknown phone 'UW
      ERROR: "dict.c", line 478: Failed to add YOU to dictionary
      INFO: dict.c(630):      0 = words in file [/usr/local/share/sphinx2/model/lm/tur
      tle/turtle.dic]
      FATAL_ERROR: "dict.c", line 637: Dictionary errors; cannot continue

       
    • Anonymous

      Anonymous - 2003-04-18

      Zia -- I'm not sure I know what's gone wrong, but I think I have a clue.  You have not told us what kind of machine and operating system you're compiling and running on, but I suspect it's some form of Windows.  In any case I suspect a problem with the definition of end-of-line in your text files and the routines that read them.

      The dictionary file for sphinx-test has 111 entries (lines), and your ERRORs show us that it's complaining about the final phone in each line.  The first line of the dictionary file reads:

      A                         AX

      But the error lines are slightly garbled:

      ]hone_to_id: did not find [AX
      'RROR: "dict.c", line 705: 'A': Unknown phone 'AX

      These lines should read:

      phone_to_id: did not find [AX]
      ERROR: "dict.c", line 705: 'A': Unknown phone 'AX'

      Do you see what's happened?  There's been a <return> inserted into the error message at the end of the phone.  I suspect that your dictionary file contains not \n at the end of line (which is the Unix convention), but rather \r\n (like DOS), and the fscanf() call in dict.c::dict_load() is reading that \r as part of the final phone -- that final phone looks to it like 'AX\r'.  The C library routine that's reading in your dictionary file isn't discarding the \r or converting it to \n for you, leading to exactly the problem your'e showing!

       
      • Anonymous

        Anonymous - 2003-04-21

        Hi JJWOLF,

        Thanks a lot for figuring the problem. It is fiar enough to understand. But i am not sure what should I do to solve it. By the way I am using windows2000 OS and am compiling these pakages using cygwin.

        Can you please help me find the solution for the above problem. I am very thankful for all your help.

        Regards,
        zia

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.