Steps to reproduce
pip install pocketsphinx==5.0.4
pytest tests/test_special_features.py
Expected behaviour
Test passes
Actual behaviour
The test will not pass unless you modify as follows
|
# pocketsphinx < 5 recognizes tree but pocketsphinx >= 5 ignores it (TODO need to research why) |
|
self.assertEqual(r.recognize_sphinx(audio, keyword_entries=[("wan", 0.95), ("too", 1.0), ("tree", 1.0)]), "too wan") |
|
# pocketsphinx < 5 recognizes tee but pocketsphinx >= 5 ignores it (TODO need to research why) |
|
self.assertEqual(r.recognize_sphinx(audio, keyword_entries=[("un", 0.95), ("to", 1.0), ("tee", 1.0)]), "to un") |
In PocketSphinx 0.1.15, it passed without modification. What's the difference?
System information
My system is macOS Sonoma.
My Python version is 3.10.9.
My Pip version is 24.3.1.
My SpeechRecognition library version is 3.14.1.
I installed PocketSphinx from PyPI (5.0.4).
Steps to reproduce
pip install pocketsphinx==5.0.4pytest tests/test_special_features.pyExpected behaviour
Test passes
Actual behaviour
The test will not pass unless you modify as follows
speech_recognition/tests/test_special_features.py
Lines 21 to 24 in 34e72fe
In PocketSphinx 0.1.15, it passed without modification. What's the difference?
System information
My system is macOS Sonoma.
My Python version is 3.10.9.
My Pip version is 24.3.1.
My SpeechRecognition library version is 3.14.1.
I installed PocketSphinx from PyPI (5.0.4).