Hello reader's
In this post you are going to see that "How you can create your own audiobook or Ebook" or simply a pdf reader using python. For doing this you must have basic knowledge of python.
First of all install python on your laptop or desktop or what ever machine you are using, to download python click here.
If you don't know how to install python then you can checkout my other post's in which i have explained how to install python and any IDE which supports python. After the successful installation of python install a IDE which supports python or you can use Python's IDE too.
There is also a different IDE's which support's python, like - VS Code, Pycharm are well known for python development.
After the successful installation of python and it's supportive IDE lets get into the code , now you have to install some modules to run the code, Modules are nothing but some files with the “. py” extension containing Python code that can be imported inside another Python Program. In simple terms, we can consider a module to be the same as a code library or a file that contains a set of functions that you want to include in your application.
now lets install the modules, Open your command prompt and type "pip install pyttsx3" pyttsx3 is a is a text-to-speech conversion library in Python. Unlike alternative libraries, it works offline, and is compatible with both Python 2 and 3.
installing pyttsx3 using pip in cmd |
As you can see in the above picture, i have already installed that's why it is showing me that requirement already satisfied but in your case it will install.
After the successful installation of pyttsx3 , you have to install one more module named PyPDF2. To install PyPDF2 type "pip install pypdf2" in command prompt.
installing Pypdf2 using pip in cmd |
How to download the audio file
ReplyDelete