bambocher / pocketsphinx-python

Python interface to CMU Sphinxbase and Pocketsphinx libraries
https://pypi.python.org/pypi/pocketsphinx
Other
373 stars 187 forks source link

Grammar import error #46

Open emanuelqueiroga opened 5 years ago

emanuelqueiroga commented 5 years ago

Hello. I use pocketsphinx with speech_recognizer. I'm calling the sphinx method and I have this error every time. TypeError: recognize_sphinx() got an unexpected keyword argument 'grammar' My call is with sr.Microphone() as source: audio = r.listen(source) text = r.recognize_sphinx(audio, grammar='palavras.gramm') and my grammar is correct. Anyone know what could be happening? Without the gramar it works normally.