Menu

Adding My own Dictionary or Making changes in the existing dictionary

Help
2016-04-19
2016-04-20
  • Mangesh Mukund Panchwagh

    Hello , What I want to do is that , before that I am refering the link https://github.com/cmusphinx/pocketsphinx-android-demo
    The dictionary provided in it huge. I want to make some changes in the sence that , can I remove some words from it amd reduce it to extent that it should accept some wors only?
    Or can I remove existign dictionary and import my own having around 20-30 words having given its pronountiation in it.

    i tried with the second one that removed the whole dictionary and added my own like bellow:

    ARE AA R
    ARE(2) ER
    BACK B AE K
    COMPUTER K AH M P Y UW T ER
    DO D UW
    DOING D UW IH NG
    EXACT IH G Z AE K T
    HELLO HH AH L OW
    HELLO(2) HH EH L OW
    HOW HH AW
    KNOW N OW
    LEFT L EH F T
    LIMITED L IH M AH T AH D
    LIMITED(2) L IH M IH T IH D
    PERSISTENT P ER S IH S T AH N T
    RIGHT R AY T
    SUPER S UW P ER
    SYSTEM S IH S T AH M
    TEST T EH S T
    THING TH IH NG
    WELL W EH L
    WHERE W EH R
    WHERE(2) HH W EH R
    YOU Y UW

    but it crashes the application when i add these words only.

    How should I proceed. PLease suggest any solution.?

     
    • Nickolay V. Shmyrev

      Look in logcat output for the reason of eror.

       
  • Mangesh Mukund Panchwagh

    Hey added logcat into it , but still giving the same problem of crashing the app when make changes in dictionary and works when do not make changes in it and recognizes only the KEYPHRASE given in the declearation:

    / Keyword we are looking for to activate menu /
    private static final String KEYPHRASE = "oh mighty";

    It recognizes only 'oh might' and  it keep displaying 'oh mighty' or
    if I write there 'how are you' it keep displaying how are you etc.
    

    Want to eliminate this dependency of recognizing the word present in the KWYPHRASE only
    and want to recognize the words thet i will give in the dictionary.

    suggest any solution plz.

     
  • Mangesh Mukund Panchwagh

    In the cmudict-en-us.dict file , it is saying "File side exceeds configured limit(2560000). Code inside features are not available".
    What does it mean ?
    what it is giving this message, does it means whatever I have done is nor correct.?

     
  • Mangesh Mukund Panchwagh

    And one more question can I generate my '.md5' file from my language file(.dict file) ?
    If possible how could this be possible, is there is any tool fro that..?

     

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.