Hello,
I am Trying to write a small python application using pocket-sphinx, but i'll keep encountering this TypeError, no matter how i pass the path to my languagemodel (i tried an absolute path in string-format and os.path)
what confuses me is: the error occours in the .set_lm function but not in the config.set_string part.
E: i used the same Model with pocketsphinx for android and in a java-program both worked as expected.
thanks for every answere
Last edit: David Weßling 2018-01-05
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I am Trying to write a small python application using pocket-sphinx, but i'll keep encountering this TypeError, no matter how i pass the path to my languagemodel (i tried an absolute path in string-format and os.path)
this is the relevant code:
what confuses me is: the error occours in the .set_lm function but not in the config.set_string part.
E: i used the same Model with pocketsphinx for android and in a java-program both worked as expected.
thanks for every answere
Last edit: David Weßling 2018-01-05
set_lm
expects an lm object as an argument, you can useset_lm_file
instead.