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
79 stars 53 forks source link

wanting to add pdf to audio convertor #29

Open ShubhamZoro opened 2 years ago

ShubhamZoro commented 2 years ago

It will convert pdf book into an audio book

ShubhamZoro commented 2 years ago

Please assign this to me

Umesh-01 commented 2 years ago

@ShubhamZoro how are you going to implement this feature?? Because for this we have to select a specific pdf first then only it can convert it. Do you have any idea to select a pdf using voice command??

Can you elaborate it further??

ShubhamZoro commented 2 years ago

Well, we will ask a user to tell the name of the pdf. But there is one thing pdf name must be in small or capital. So that we can change the text we get from the user accordingly. If there are any suggestions please tell me.

solletravinder commented 2 years ago

With GUI, we can. for reference: https://www.geeksforgeeks.org/python-askopenfile-function-in-tkinter/

ishabhthakur commented 2 years ago

hey @Umesh-01 i want to contribute to your project please assign me this issue!! under GSSOC'22 !!!
I have new solution regarding this issues please if the assigned person not working on it

i am going to use ibm api

Umesh-01 commented 2 years ago

Well, we will ask a user to tell the name of the pdf. But there is one thing pdf name must be in small or capital. So that we can change the text we get from the user accordingly. If there are any suggestions please tell me.

To achieve this, we have to keep all the pdf files in one directory and by providing the path of that directory to PA we can access them. But, it makes this feature limited to a particular directory and in real life we can have our pdf's anywhere in the computer. That's the problem.

Umesh-01 commented 2 years ago

With GUI, we can. for reference: https://www.geeksforgeeks.org/python-askopenfile-function-in-tkinter/

It's a good idea. @solletravinder for this we have to select the file manually, don't we??

There comes another problem why we are using the assistant if we have to do something manually. We should try to minimize the usage of PC manually.

I think we have to find a global path or something from where we can access all the files and directories inside our PC with that we will provide the extension (.pdf) of files so that the PA can search for those specific files in all the directories if it exists.

solletravinder commented 2 years ago

@Umesh-01 Can we store the location folder path of those PDFs with some unique name in a dictionary variable? place of setting paths can be in environment variable. (python-dotenv library)

solletravinder commented 2 years ago

With GUI, we can. for reference: https://www.geeksforgeeks.org/python-askopenfile-function-in-tkinter/

It's a good idea. @solletravinder for this we have to select the file manually, don't we??

There comes another problem why we are using the assistant if we have to do something manually. We should try to minimize the usage of PC manually.

I think we have to find a global path or something from where we can access all the files and directories inside our PC with that we will provide the extension (.pdf) of files so that the PA can search for those specific files in all the directories if it exists.

Can we create a command to set paths for Documents/media, etc? This we can store as a constant.

Umesh-01 commented 2 years ago

@Umesh-01 Can we store the location folder path of those PDFs with some unique name in a dictionary variable? place of setting paths can be in environment variable. (python-dotenv library)

I am not aware of python-dotenv library, are you sure it will work??

solletravinder commented 2 years ago

Yeah if you want to set a centralized path.