Python Project in 11 lines | Make your own audio book

Опубликовано: 25 Май 2026
на канале: Aryan Narwal
233
12

Welcome To Our channel
In this video you gonna learn to make your own audio book using python in just 11 lines of code.
****************************** code code code *****************************
import pyttsx3
import PyPDF2
speaker = pyttsx3.init()
book = open('story.pdf', 'rb')
pdfReader = PyPDF2.PdfFileReader(book)
pages = pdfReader.numPages
for page_num in range(8, pages):
page = pdfReader.getPage(page_num)
text = page.extractText()
speaker.say(text)
speaker.runAndWait()
****************************** code code code *****************************
So consider Giving a video a like, share it with your friends and Subscribe to our channel too for more videos.
Instagram:   / rohitnarwal7988  
Python book for beginners and intermediate people: https://www.amazon.com/Python-simple-...
Python book for advance topics: https://www.amazon.com/Advance-Python...