Skip to main content

Posts

Showing posts with the label Convert PDF into Audio Book in any language using python

Convert PDF into Audio Book in any language using python

 Convert PDF into Audio Book in any language using Python We have to convert the pdf into the audio book Properties- We translate the text of pdf in required language Step 1- Import library- from gtts import gTTS import PyPDF2 from googletrans import Translator from tkinter.filedialog import * Step 2- Read the text of pdf using PyPDF2  Using for loop add all the text in one text file  Step 3- Translate the text to the given language Eg.English to French  English to hindi But for this project we translate into hindi Step 4- Using gTTS convert the text into mp3 file Complete code-