pocketsphinx-python icon indicating copy to clipboard operation
pocketsphinx-python copied to clipboard

Grammar import error

Open emanuelqueiroga opened this issue 6 years ago • 0 comments

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.

emanuelqueiroga avatar Jun 25 '19 18:06 emanuelqueiroga