FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pythonprogram/audiobook at master · seeditsolution/pythonprogram · GitHub
seeditsolution
pythonprogram
Repository navigation
Code
Issues
Pull requests
623
(623)
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
pythonprogram
/
audiobook
Copy path
More file actions
More file actions
Latest commit
History
History
History
12 lines (12 loc) · 344 Bytes
Breadcrumbs
pythonprogram
/
audiobook
Copy path
File metadata and controls
12 lines (12 loc) · 344 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
import pyttsx3
import PyPDF2
book = open('book.pdf','rb')
pdfReader = PyPDF2.PdfFileReader(book)
number_of_pages = pdfReader.numPages
print(number_of_pages)
speaker = pyttsx3.init()
for num in range(1, number_of_pages):
page_number = pdfReader.getPage(10)
text = page_number.extractText()
speaker.say(text)
speaker.runAndWait()
Back
|
FazBrowse Home
|
New Git URL