hey, i am using snapshot version of pocketsphinx on linux using g++. so i have used continuous.cpp code in my application code. i have created different class and i am recognizing from a file. when i use main function in same class ( where continuous.cpp function's defined ) and run it, it recognize pretty well, but when i tried to call this from main function, which is defined in different class, ps_init(config) return null. so it exited and not recognize anything. so what is the reason? ...very strange behavior .. any help
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hey, i am using snapshot version of pocketsphinx on linux using g++. so i have used continuous.cpp code in my application code. i have created different class and i am recognizing from a file. when i use main function in same class ( where continuous.cpp function's defined ) and run it, it recognize pretty well, but when i tried to call this from main function, which is defined in different class, ps_init(config) return null. so it exited and not recognize anything. so what is the reason? ...very strange behavior .. any help
so i found something , when you run this app from different folder it gives you error
ERROR: "acmod.c", line 87: Folder 'hindi.cd_cont_1000' does not contain acoustic model definition 'mdef'
.. means if excutable is in "home" folder and i run program from home then it run well otherwise throws an error...
So is there a mdef file inside that folder? Are you using the -hmm parameter to point to the acoustic model folder?
so yes there is "mdef" in acoustic model.... there was issue in file path... so i reolved that...