Тэги:
#python #TextToSpeechКомментарии:
Thank you for this, great video!!
ОтветитьHow can i save the text into a word or xlsx?
ОтветитьIs there any way to pop up an option for choosing the page from which the reading will start & option for choosing the pdf file is there, I am pasting the code
import pyttsx3 as py
import PyPDF2 as pd
pdfReader = pd.PdfFileReader(open('Excel-eBook.pdf', 'rb'))
from tkinter.filedialog import *
speaker = py.init()
voices = speaker.getProperty('voices')
for voice in voices:
speaker.setProperty('voice', voice.id)
book = askopenfilename()
pdfreader = pd.PdfFileReader(book)
pages = pdfreader.numPages
for num in range(0, pages): # O is the number from where the reading will start
page = pdfreader.getPage(num)
text = page.extractText()
player = py.init()
player.say(text)
player.runAndWait()
I run in jupyter notebook it run successfully but i haven't found audio file
ОтветитьPlz try to zoom the code so it can easily see and understand. Many people are using smartphone so please... In
Thanks
from Chandigarh
India
You earned my sub and like and congrats on the little one.
ОтветитьHow to extract only relavent text
ОтветитьDude your topics are awesome! Keep it up!!
Ответить