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

Please Help It was all working fine and now it isn't working #36

Open
khilesh-kumar opened this issue Dec 31, 2020 · 6 comments
Open

Please Help It was all working fine and now it isn't working #36

khilesh-kumar opened this issue Dec 31, 2020 · 6 comments

Comments

@khilesh-kumar
Copy link

Please Help It was working and I made my own and that was also working then it showed error
PS C:\Users\user> & C:/Users/user/AppData/Local/Programs/Python/Python39/python.exe c:/Users/user/g.py
Traceback (most recent call last):
File "c:\Users\user\g.py", line 60, in
run_alexa()
File "c:\Users\user\g.py", line 35, in run_alexa
command = take_command()
File "c:\Users\user\g.py", line 31, in take_command
return command
UnboundLocalError: local variable 'command' referenced before assignment

@Jinoy-Varghese
Copy link

same issue found
C:\Users\jinoy>python c:/Users/jinoy/Desktop/alexa.py Traceback (most recent call last): File "c:/Users/jinoy/Desktop/alexa.py", line 60, in <module> run_alexa() File "c:/Users/jinoy/Desktop/alexa.py", line 35, in run_alexa command = take_command() File "c:/Users/jinoy/Desktop/alexa.py", line 31, in take_command return command UnboundLocalError: local variable 'command' referenced before assignment

@khilesh-kumar
Copy link
Author

It's all about microphone.
Just check your microphone is plugged properly or not.
When check my was loosely connected so I connected it. Then I not faced this problem.
Try this solution.

@Jinoy-Varghese
Copy link

It's all about microphone.
Just check your microphone is plugged properly or not.
When check my was loosely connected so I connected it. Then I not faced this problem.
Try this solution.

I have a built in microphone in my laptop which is working properly

@khilesh-kumar
Copy link
Author

So just recheck your command

@Jinoy-Varghese
Copy link

commands I used are :
pip install speechRecognition
pip install pyttsx3
pip install pywhatkit
pip install wikipedia
pip install pyjokes

@Rahulshah192006
Copy link

@Jinoy-Varghese
install pyaudio
to solve your problem

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

3 participants