Skip to content

saifkabbo/PDF-To-Audio-Book

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 

Repository files navigation

PDF to Audiobook Converter

πŸš€ Overview

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.

🎯 Features

  • 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.

πŸ› οΈ Installation

Prerequisites

  • Python 3.x
  • Pip (Python package manager)

Install Dependencies

First, clone the repository:

git clone https://github.com/your-username/pdf-to-audiobook-converter.git
cd pdf-to-audiobook-converter

Then, install the required Python packages:

pip install -r requirements.txt

πŸš€ Usage

To convert your PDFs to audiobooks, follow these steps:

  1. Place your PDF files in the input_pdfs directory.
  2. Run the conversion script:
python convert_to_audio.py --input input_pdfs --output output_audiobooks --voice male --language en --rate 1.0

Your audiobooks will be saved in the output_audiobooks directory.

Command-Line Arguments

  • --input: Path to the directory containing PDF files.
  • --output: Path to the directory where audiobooks will be saved.
  • --voice: Choose the voice type (male or female).
  • --language: Specify the language for conversion (e.g., en for English).
  • --rate: Adjust the speech rate (default is 1.0).

πŸ§ͺ Testing

To run the tests, use:

python -m unittest discover tests

🀝 Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the project.
  2. Create your feature branch (git checkout -b feature/AmazingFeature).
  3. Commit your changes (git commit -m 'Add some AmazingFeature').
  4. Push to the branch (git push origin feature/AmazingFeature).
  5. Open a Pull Request.

πŸ§‘β€πŸ’» Author

Abu Saif Kabbow - saifkabbo

πŸ™ Acknowledgments

Thanks to the open-source community for making this project possible.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages