Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Grammar import error #46

Open
emanuelqueiroga opened this issue Jun 25, 2019 · 0 comments
Open

Grammar import error #46

emanuelqueiroga opened this issue Jun 25, 2019 · 0 comments

Comments

@emanuelqueiroga
Copy link

emanuelqueiroga commented Jun 25, 2019

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant