Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What's the difference between PocketSphinx 0.1.15 and 5.0.4? #825

Open
ftnext opened this issue Jan 27, 2025 · 0 comments
Open

What's the difference between PocketSphinx 0.1.15 and 5.0.4? #825

ftnext opened this issue Jan 27, 2025 · 0 comments
Labels
pocketsphinx Features related to pocketsphinx

Comments

@ftnext
Copy link
Collaborator

ftnext commented Jan 27, 2025

Steps to reproduce

  1. pip install pocketsphinx==5.0.4
  2. 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).

@ftnext ftnext added the pocketsphinx Features related to pocketsphinx label Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pocketsphinx Features related to pocketsphinx
Projects
None yet
Development

No branches or pull requests

1 participant