Closed petolachka closed 7 years ago
Hi @petolachka,
There are multiple options for your case:
keyword
argument for recognize_sphinx
in the latest development versions of the library. This allows you to restrict the vocabulary to a specific set of words, making it easier to detect the correct one.recognize_wit
and recognize_ibm
.@Uberi This is a great library and I was able to demonstrate speech recognition's potential very easily. However, we need to consider offline usage as our primary paradigm so only Sphinx will work.
Straight out of the box, Sphinx doesn't seem to work as well as we could hope. The Sphinx instructions linked to above are perhaps overkill, in the sense that they educate the reader about all possibilities when it's probably better to go with just one suboptimal possibility in exchange for ease of implementation.
Do you have a minimal example you could post which shows how to do some basic tweaking via keywords?
Let me P.S. that by saying that I think there's a cool way to train Sphinx, which is
It's not a slam dunk way to have Sphinx understand everything, but it could work well enough to bootstrap things.
Would SpeechRecognition support this approach?
Steps to reproduce
Expected behaviour
(What did you expect to happen?)
Actual behaviour
(What happened instead? How is it different from what you expected?)
System information
(Delete all the statements that don't apply.)
My system is. (For example, "Ubuntu 16.04 LTS x64", "Windows 10 x64", or "macOS Sierra".)
My Python version is. (You can check this by running
python -V
.)My SpeechRecognition library version is. (You can check this by running
python -c "import speech_recognition as sr;print(sr.__version__)"
.)My PyAudio library version is / I don't have PyAudio installed. (You can check this by running
python -c "import pyaudio as p;print(p.__version__)"
.)I installed PocketSphinx from. (For example, from the Debian repositories, from Homebrew, or from the source code.)
Hello professionals, I am happy to use your wonderful library. However I have small issue. Some words are not get correctly. For example when I say "home" sometimes the library understands it as "dog". Is there any way to train the system for particular words? Thanks and good luck!