Shauryagulati / Create-your-own-Audiobook

Create an audiobook from PDF

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create-your-own-Audiobook

This Python script reads a PDF file, extracts the text and converts the text to audio. Just make sure that the PDF file is in the same folder.

Getting Started

Add the PDF file to the folder. Replace the name 'Ashlee Vance - Elon Musk; Tesla, SpaceX, and the Quest for a Fantastic Future.pdf' with the name of your file. Make sure your device is connected to the internet (for gTTS API). Upon successful execution, a file ('sound.mp3') should appear in the folder.

Built With

Google Text to Speech (gTTS) library
PyPDF2 library

About

Create an audiobook from PDF


Languages

Language:Python 100.0%