pocketsphinx icon indicating copy to clipboard operation
pocketsphinx copied to clipboard

pocketsphinx.pocketsphinx expected to exist, but doesn't

Open dhdaines opened this issue 2 years ago • 0 comments

The old SWIG bindings created the wrapper module as pocketsphinx.pocketsphinx, wherease the new Cython ones create it as pocketsphinx._pocketsphinx. Some code, notably https://github.com/Uberi/speech_recognition, expects this module to exist.

Unfortunately due to the intricacies of scikit-build and CMake, it doesn't seem possible to create the wrapper module as pocketsphinx.pocketsphinx, but the problem can easily be fixed by just creating this as a reference to the actual module, which I have done in 20360136f96b04a8ea18f0da41450275a0a1c33b

Making an issue for this just to pre-empt any other bug reports!

dhdaines avatar Sep 07 '22 23:09 dhdaines