Skip to content

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

@ftnext

Description

@ftnext

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    pocketsphinxFeatures related to pocketsphinx

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions