Converts text from a PDF file to speech and saves it as an MP3 file.
This script uses Python with PyPDF2 and gTTS libraries to convert text from a PDF file into speech and saves the output as an MP3 file.
- Converts PDF text to speech
- Saves speech as an MP3 file
- Uses PdfReader and gTTS libraries
-
Clone the repository:
git clone https://github.com/your-username/pdf-to-audio.git cd pdf-to-audio -
Install dependencies:
pip install -r requirements.txt
Run the script:
python pdf_to_audio.py