The PDF to Audiobook Converter is a tool that transforms your PDF documents into audiobooks. It uses text-to-speech (TTS) technology to let you listen to your favorite books, articles, or any other PDFs while on the go.
- PDF to Audio Conversion: Convert any PDF into an audiobook.
- Multi-Language Support: Supports multiple languages for conversion.
- Customizable Voices: Choose different voice options and adjust the speech rate.
- Batch Processing: Convert multiple PDF files at once.
- Output Formats: Save audiobooks in popular formats like MP3.
- Python 3.x
- Pip (Python package manager)
First, clone the repository:
git clone https://github.com/your-username/pdf-to-audiobook-converter.git
cd pdf-to-audiobook-converterThen, install the required Python packages:
pip install -r requirements.txtTo convert your PDFs to audiobooks, follow these steps:
- Place your PDF files in the
input_pdfsdirectory. - Run the conversion script:
python convert_to_audio.py --input input_pdfs --output output_audiobooks --voice male --language en --rate 1.0Your audiobooks will be saved in the output_audiobooks directory.
--input: Path to the directory containing PDF files.--output: Path to the directory where audiobooks will be saved.--voice: Choose the voice type (maleorfemale).--language: Specify the language for conversion (e.g.,enfor English).--rate: Adjust the speech rate (default is1.0).
To run the tests, use:
python -m unittest discover testsContributions are welcome! Please follow these steps:
- Fork the project.
- Create your feature branch (
git checkout -b feature/AmazingFeature). - Commit your changes (
git commit -m 'Add some AmazingFeature'). - Push to the branch (
git push origin feature/AmazingFeature). - Open a Pull Request.
Abu Saif Kabbow - saifkabbo
Thanks to the open-source community for making this project possible.