problem Voce initialisation
in
Contributed Library Questions
•
8 months ago
Hi there,
i'm struggling to use Voce since i wanted to start using voice recognition programs for robotics.
I got some kind of errors and managed to get through, but i am only able to get the "voice synthetiser" working
( i'm almost sure it is a problem due to initialisating Voce ):
when i code:
voce.SpeechInterface.init("C:/Users/Guillaume/Documents/processing-2.0b7/modes/java/libraries/voce/library",true,true, "C:/Users/Guillaume/Documents/processing-2.0b7/modes/java/libraries/voce/library/grammar" , "" );
the very last "" means i wont use any gram files, so the program directly uses the basic gram file named "digits"
voice synthetiser works fine and i can count every digits from 0 to 9.
but when i'm trying to add my gram files ( even "digits" ) it never works and i get a nullpointer error ( voice synthetiser still works )
i tried everylocation possible, i renamed directories, i tried "digits.gram" "digits" it never works
i also tried to link to the upper directory ( second string in command ), i tried different location of the library
i searched for help on the internet but for everyone else it seems to work
i also tried to modify the "digits" default gram file in order to see if i could get it to what i want ( adding other words and use only this single file in future applications ) but as strange as it may seem, it doesn't work: that means when i add for example a single word ( like "test " ) in EVERY digits.gram files on my computer, when i go back to the only program working ( shown above ), it only recognises digits, and not the new word "test"..
i'm running out of ideas, could someone help?
i'm struggling to use Voce since i wanted to start using voice recognition programs for robotics.
I got some kind of errors and managed to get through, but i am only able to get the "voice synthetiser" working
( i'm almost sure it is a problem due to initialisating Voce ):
when i code:
voce.SpeechInterface.init("C:/Users/Guillaume/Documents/processing-2.0b7/modes/java/libraries/voce/library",true,true, "C:/Users/Guillaume/Documents/processing-2.0b7/modes/java/libraries/voce/library/grammar" , "" );
the very last "" means i wont use any gram files, so the program directly uses the basic gram file named "digits"
voice synthetiser works fine and i can count every digits from 0 to 9.
but when i'm trying to add my gram files ( even "digits" ) it never works and i get a nullpointer error ( voice synthetiser still works )
i tried everylocation possible, i renamed directories, i tried "digits.gram" "digits" it never works
i also tried to link to the upper directory ( second string in command ), i tried different location of the library
i searched for help on the internet but for everyone else it seems to work
i also tried to modify the "digits" default gram file in order to see if i could get it to what i want ( adding other words and use only this single file in future applications ) but as strange as it may seem, it doesn't work: that means when i add for example a single word ( like "test " ) in EVERY digits.gram files on my computer, when i go back to the only program working ( shown above ), it only recognises digits, and not the new word "test"..
i'm running out of ideas, could someone help?
1