This script converts a PDF file to an MP3 audio file using Google Text-to-Speech (gTTS) and pdfplumber libraries. The user can choose the language of the output audio file, and the script will save the converted audio file in the same directory as the original PDF file with the same name.
• Clone or download this repository.
• Install the required libraries.
• Run the script.
• Enter the file path of the PDF file you want to convert and choose the language of the output audio file when prompted.
• The converted MP3 file will be saved in the same directory as the original PDF file with the same name.
Note: The script only works with PDF files. If the specified file is not a PDF or doesn't exist, the script will return an error message.