Umesh-01 / Python-Assistant

Python Assistant (PA) is a voice command based assistant service written in Python 3.9+. It can recognize human speech or voice, talk to user and execute basic commands.
MIT License
82 stars 53 forks source link

After opening Pa.py, nothing was happen. Where is my trouble? #7

Closed Skyere closed 3 years ago

Umesh-01 commented 3 years ago

@Skyere I already told you check #6 And don't create new issues, it's just you are facing some errors while running this PA.py file there is no need to create such issues Only comment below these issues..

Skyere commented 3 years ago

I have fixed #6, but PA.py still stopped after start without any errors

Skyere commented 3 years ago

Okay, I fixed it. But now I have another issue: The assistent hasn't hear me. Could you help me? I recieved "listening" in console but that's all

Umesh-01 commented 3 years ago

@Skyere which IDE you are using??

Umesh-01 commented 3 years ago

have you installed all the libraries required??

Skyere commented 3 years ago

Yes, I installed all libraries. I'm using vs code

Umesh-01 commented 3 years ago

Is there any error while running the program or any highlighted text??

Skyere commented 3 years ago

Without any errors or warning

Skyere commented 3 years ago

Only "Listening..."

Umesh-01 commented 3 years ago

can you send me a screenshot??

Skyere commented 3 years ago

image

Skyere commented 3 years ago

I tried launch on console too. But received the same

Umesh-01 commented 3 years ago

@Skyere try this !!

write these lines after engine = pyttsx3.init()

voices = engine.getProperty('voices')       
engine.setProperty('voice', voices[1])
Skyere commented 3 years ago

Still the same error

Umesh-01 commented 3 years ago

is that voice assistant speaking??

Skyere commented 3 years ago

Yes, I hear this text image

Umesh-01 commented 3 years ago

then try to speak something in a slient environment, maybe it will recognize...

use headphones (with microphone) if possible...

Umesh-01 commented 3 years ago

sometimes due to noisy environment it stuck at listening and doesn't go to recognize the voice...

Skyere commented 3 years ago

I'm tried use this to check my microphone image

Skyere commented 3 years ago

And this one recognize my voice image

Umesh-01 commented 3 years ago

Hello @Skyere I am not getting what error you are facing !!

what should can I do??

Umesh-01 commented 3 years ago

It's working for me, I have tried to run the same code...

Just there was the only error for underscores before and after both name and main in this line

if __name__ == '__main__':