https://github.com/scottgriv/python-pdf_to_audio
Convert pdf files to audio files (text to voice).
https://github.com/scottgriv/python-pdf_to_audio
pdf pdf-to-audio python utility utility-app utility-application utility-script
Last synced: about 2 months ago
JSON representation
Convert pdf files to audio files (text to voice).
- Host: GitHub
- URL: https://github.com/scottgriv/python-pdf_to_audio
- Owner: scottgriv
- License: unlicense
- Created: 2023-01-02T23:13:38.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-09T04:25:10.000Z (4 months ago)
- Last Synced: 2025-03-28T18:32:32.237Z (about 2 months ago)
- Topics: pdf, pdf-to-audio, python, utility, utility-app, utility-application, utility-script
- Language: Python
- Homepage:
- Size: 365 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
---------------
Python PDF File to Audio File
A simple Python script that converts PDF files to audio files.
---------------
## Table of Contents
- [Getting Started](#getting-started)
- [Resources](#resources)
- [License](#license)
- [Credits](#credits)## Getting Started
1. Clone this repository.
2. Install [Python](https://www.python.org/downloads/).
3. Install [Pip](https://pip.pypa.io/en/stable/installing/).
4. Install `pip install pyttsx3` and `pip install PyPDF2` in your terminal.
5. Add your PDF file input and audio file output locations to the `main.py` file here:
```python
# Define Input and Output File Locations
input_file = 'pdf_Sample.pdf'
output_file = 'pdf_Sample.aiff'
```
6. Run the script: `python main.py`
7. Your text based PDF file will be converted to an audio file.## Resources
- [Python](https://www.python.org)
- [Pip](https://pip.pypa.io/en/stable/installing/)
- [Pyttsx3](https://pypi.org/project/pyttsx3/)
- [PyPDF2](https://pypi.org/project/PyPDF2/)## License
This project is released under the terms of **The Unlicense**, which allows you to use, modify, and distribute the code as you see fit.
- [The Unlicense](https://choosealicense.com/licenses/unlicense/) removes traditional copyright restrictions, giving you the freedom to use the code in any way you choose.
- For more details, see the [LICENSE](LICENSE) file in this repository.## Credits
**Author:** [Scott Grivner](https://github.com/scottgriv)
**Email:** [[email protected]](mailto:[email protected])
**Website:** [scottgrivner.dev](https://www.scottgrivner.dev)
**Reference:** [Main Branch](https://github.com/scottgriv/python-pdf_to_audio)---------------