This is a web application that allows you to convert a PDF file into an audiobook in your desired language. Simply upload a PDF file, select the language for the audiobook, and the application will generate an MP3 file that you can download and listen to.
- Upload a PDF file for conversion.
- Choose the language for the audiobook.
- Automatically extract the text from the PDF.
- Convert the text to speech using the selected language.
- Generate an MP3 file of the audiobook.
- Download the audiobook file.
-
Clone this repository to your local machine.
-
Navigate to the project directory
-
Install the required dependencies by running the following command:
pip install -r requirements.txt
-
Run the
main.py
file to start the application: -
Open your web browser and navigate to
http://localhost:5000
to access the application. -
Choose a PDF file using the file upload form.
-
Select the language for the audiobook from the available options.
-
Click the "Submit" button to start the conversion process.
-
Wait for the conversion to complete. Once done, the audiobook file will be automatically downloaded.
-
Enjoy listening to your audiobook!
Note: Make sure you have an active internet connection during the conversion process as the gtts
library requires an internet connection to fetch the required language files.
Feel free to contribute to this project by submitting bug reports, feature requests, or pull requests.