Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: recognize() got an unexpected keyword argument 'seconds' #11

Open
shamtastic opened this issue Oct 9, 2018 · 5 comments
Open

Comments

@shamtastic
Copy link

Ive beet getting the following error whenever i try to recognize from a file! Any ideas how to fix this? or what the problem might be

Traceback (most recent call last):
File "recognize-from-file.py", line 7, in
r.recognize(seconds=seconds)
TypeError: recognize() got an unexpected keyword argument 'seconds'
Makefile:25: recipe for target 'recognize-file' failed
make: *** [recognize-file] Error 1

@rvbcia
Copy link

rvbcia commented Nov 22, 2018

hi, did you work it out? I'm trying to make this work but still have this error.

@niknoorakmal
Copy link

niknoorakmal commented Dec 3, 2018

Hye. sorry for disturbing. i didnt run this python yet, but when i see the file recognize-from-file.py .. "from libs.reader_microphone import FileReader". you can see in libs.reader_microphone.. "class MicrophoneReader(BaseReader):" which it call different file.. i think you should change "from libs.reader_file import FileReader" inside the file recognize-from-file.py . I'm really sorry if this won't help.

@shamtastic
Copy link
Author

@rvbcia Not yet, i ditched the project for the time being.

@niknoorakmal True, that was an issue with the code yes, i fixed that a while back. This isnt exactly the issue @rvbcia and i are having though. Thanks though :) If you managed to fix it and make it work, can you please send me the updated on, that would be much appreciated. Thanks :)

@itspoma
Copy link
Owner

itspoma commented May 1, 2020

@shamtastic feel to create PR to share changes with others.

Kind regards,
Roman

@hedo95
Copy link

hedo95 commented May 16, 2020

I have the same issue with recognize-file. Could you share your code changes please? thanks:)

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

No branches or pull requests

5 participants