Комментарии:
Gonna need that source code 👀
ОтветитьI liked how you said: "not gonna explain how to install python", though is this working as intended, it seems to me clean_text would contain only last page, because it's been overwritten in every iteration, and the resulting mp3 would be only for last page?
ОтветитьThanks Tiff, but why don't you run the audio file to check it?
Ответитьwhy did you source .venv/bin/activate ?
Ответитьprogrammin in that chromeeeee
ОтветитьThank you! excellent video
ОтветитьYou seem to be a very sharp tech person, and your pdf to speech automation python script seems to be a very handy time saving script, but now, as I'm sure you know, AI like ChatGPT and many others do that, but I guess it's okay for someone who is learning to program. On the other hand, your delete files in download folder seems to take longer than if you just go into the downloads folder and delete them manually. So people are doing it to learn programming I guess it's okay, but it's a fail when it comes to automation. But I'll give you another chance. So go out there and find some automation scripts that really can save time and effort... you can do it!
ОтветитьHey
Ответитьwitch program do you use to code in ptyhon?
ОтветитьHi,
Love your videos, what setup (software and hardware) are you using to create them?
I can’t tell if this channel is a satire or if this person is being serious. Jesus incompetent Christ
ОтветитьNicely done!
ОтветитьNice video and tutorial. Thanks. I
ОтветитьThis was cool!
ОтветитьAMAZING
ОтветитьNot useful code
ОтветитьWow you made my life easier! Thanks a lot.
ОтветитьHow do you get it to delete a specific file type for example if I wanted to delete all files that are .csv?
ОтветитьTiff , you are the best !!. I have learned a lot with you !!. Thanks
Ответитьi love it keep going
ОтветитьI had to fix the code for the deprecated issues I found as of 2023-06-23. Hopefully the following pasted code will format properly:
import pyttsx3, PyPDF2, sys
from pathlib import Path
from io import BytesIO
with Path.open('book.pdf','rb') as pdfFile:
pdfStream = BytesIO(pdfFile.read())
pdfReader = PyPDF2.PdfReader(pdfStream)
speaker = pyttsx3.init()
# process each individual page
page_num: int = 0
text:str = ''
clean_text: str = ''
for page_num in range(len(pdfReader.pages)):
text = pdfReader.pages[page_num].extract_text()
clean_text = text.strip().replace('\n', ' ')
print(clean_text)
speaker.save_to_file(clean_text, 'story.mp3')
speaker.runAndWait()
speaker.stop()
great fun project. let us make a code for FB posting automation in python
ОтветитьYou look beautiful 💖.
ОтветитьAmazing!!!
ОтветитьI loved this. Would love to see more projects that youve done!
Ответитьin the first part, you got my curiosity. second part, you got my attention
ОтветитьBeautiful and Smart! Just starting my Python journey - will be tuning in for more! Thx Tiff, keep 'em coming!
ОтветитьNah, women don't know how to code. Some know how to cook though.
ОтветитьAnd then came chatgpt
ОтветитьExcellent. Thank you, this gets me excited to learn python.
Ответить🔝🔝🔝🔝🔝🔝🔝
ОтветитьTyped exactly as you and I am getting the following error: "Segmentation fault: 11". Google tells me it could be related to macOS compatibility issues or the terminal is trying to access memory it isn't supposed to?
Ответить🌹🦚🌹 Lovely 🌹🦚🌹
ОтветитьI read webnovels and few years ago before Tencent saw the huge western market there were a bunch of different websites for each novel, they were translated into english.
So keeping track of them became a bit tiring and if I used a webpage if it was down, well RIP.
So I taught myself javascript and made a chrome extension that I can use on my PC and Tablet, using firebase to store my novels database.
I love stats so keeping track of what I read, how many words, chapters etc. was fun and useful. Some novels have character names that I don't like or use censorship on words, replacing them is easy, saving it for each novel individually and so on. Using it daily.
Another project of mine is a tool to add some data into my spreadsheet, I made a project that does a lot of calculations for me and adds it to the Google spreadsheet.
ofc there are others, but those too are my most used and useful ones.
I feel the second project is kinda useless as is, if you gotta manually enter the file name it would be MUCH quicker to just open the downloads folder, perhaps if u got a lot of say pdfs a better alternative would be to move all the pdfs from downloasd to like downloads/pdf where u can manually review them
Ответитьyour smart your beautiful and have common love called python
as a result will u marie me🎉❤
Here we are all looking at the code ... And what is the main thing? The main - is that she is a chic and beautiful girl!!! :)) Yes, and fluent in Python! Wow!!! :))
ОтветитьWhats the IDE You're using?
ОтветитьPython World Peace App? Kidding aside, I did ask Chat GPT about things like that. Maybe a million advanced Quantum computers might help it along a bit.
ОтветитьVery good topic. Spelling mistakes are normal in live coding situations and non scripted sessions. Don’t initiate influence leakage by apologizing about your spellings when it is not a big deal. You have a good topic, good professional presentation however your copy/ script can be rehearsed to improve the flow. It gets better with experience and chatGPT. Good luck.
Ответитьthx for good information
Ответить有點像麻雀變鳳凰的女主角。
ОтветитьI don't know how you guys use VS code to run python. I have installed several times and uninstalled it, and went back to Jupyter notebook.
ОтветитьHave you already created a web page? If not could you pls?
ОтветитьThere are two convenient small things. I try first code and see the sentences it print, but it can’t save anything. If I just use "speak.say(clean_text)", I can hear it fine. But when I try to "speak.say(clean_text)", then "save_to_file(clean_text, file name.mp3)", the production of mp3 file ends up being ahead of the actual pronunciation.
ОтветитьI'd like to hear that resulting book.mp3 file. Is it very robotic or does it sound natural? Is it audiobook quality or would it drive you insane?
Ответитьno idea why mine can't find the imports... I've installed them properly.
Ответить