adam-jimenez / auddit Goto Github PK
View Code? Open in Web Editor NEWTired of those Reddit text-to-speech videos on Youtube? Now you can make your own!
Home Page: https://www.youtube.com/channel/UCMi63vc1Timv8dfrmcrrdFQ
License: MIT License
Tired of those Reddit text-to-speech videos on Youtube? Now you can make your own!
Home Page: https://www.youtube.com/channel/UCMi63vc1Timv8dfrmcrrdFQ
License: MIT License
Right now, we can mostly only use subreddit where the content is in the comments, aka Askreddit. It would be nice to iterate over posts because right now we can't generate interesting videos based on subreddits like TIFU.
Current Task: generate_video Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/moviepy/video/VideoClip.py", line 1168, in __init__ subprocess_call(cmd, logger=None) File "/usr/local/lib/python3.6/dist-packages/moviepy/tools.py", line 54, in subprocess_call raise IOError(err.decode('utf8')) OSError: convert: unable to read font
Amiri-regular' @ warning/annotate.c/RenderType/960.
convert: delegate library support not built-in '/usr/share/fonts/type1/gsfonts/n019003l.pfb' (Freetype) @ warning/annotate.c/RenderFreetype/1823.
convert: no decode delegate for this image format ' @ error/constitute.c/ReadImage/562. convert: no images defined
PNG32:/tmp/tmpy1zr5as3.png' @ error/convert.c/ConvertImageCommand/3273.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "src/main.py", line 28, in
pipeline.execute(subreddit='askreddit', nsfw=False, comment_limit=20)
File "src/main.py", line 24, in execute
task(self.context)
File "/root/auddit/src/tasks/generate_video/task.py", line 62, in generate_video
clips.append(generate_title(post.title, post.title_audio))
File "/root/auddit/src/tasks/generate_video/task.py", line 20, in generate_title
txt_clip = TextClip(wrapped_text,fontsize=font_size, font=FONT, color=TITLE_FONT_COLOR, align="west")
File "/usr/local/lib/python3.6/dist-packages/moviepy/video/VideoClip.py", line 1177, in init
raise IOError(error)
OSError: MoviePy Error: creation of None failed because of the following error:
convert: unable to read font Amiri-regular' @ warning/annotate.c/RenderType/960. convert: delegate library support not built-in '/usr/share/fonts/type1/gsfonts/n019003l.pfb' (Freetype) @ warning/annotate.c/RenderFreetype/1823. convert: no decode delegate for this image format
' @ error/constitute.c/ReadImage/562.
convert: no images defined `PNG32:/tmp/tmpy1zr5as3.png' @ error/convert.c/ConvertImageCommand/3273.
.
.This error can be due to the fact that ImageMagick is not installed on your computer, or (for Windows users) that you didn't specify the path to the ImageMagick binary in file conf.py, or that the path you specified is incorrect
`
I have ImageMagick installed and have tried various methods to fix. I have no idea what the issue is.
Traceback (most recent call last):
File "C:\Users\Meridius\Desktop\redditbot\src\tasks\text_to_speech\task.py", line 24, in save_tts
with open(path, "wb") as out_file:
FileNotFoundError: [Errno 2] No such file or directory: '/data/audio/7aefc4c34d8c7f5f466a39ee63189bef.mp3'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:/Users/Meridius/Desktop/redditbot/src/main.py", line 28, in
pipeline.execute(subreddit='askreddit', nsfw=False, comment_limit=20)
File "C:/Users/Meridius/Desktop/redditbot/src/main.py", line 24, in execute
task(self.context)
File "C:\Users\Meridius\Desktop\redditbot\src\tasks\text_to_speech\task.py", line 39, in tts
post.title_audio = save_tts(post.title)
File "C:\Users\Meridius\Desktop\redditbot\src\tasks\text_to_speech\task.py", line 29, in save_tts
return save_gtts(text)
File "C:\Users\Meridius\Desktop\redditbot\src\tasks\text_to_speech\task.py", line 34, in save_gtts
tts.save(path)
File "C:\Users\Meridius\AppData\Local\Programs\Python\Python38-32\lib\site-packages\gtts\tts.py", line 294, in save
with open(str(savefile), 'wb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/data/audio/4472f828-99bd-4497-bf96-954e61731b50.mp3'
This might be a good thing to be used for automation.
If comments are too long they will overflow out of the frame, we should instead split the comment into multiple parts and display each part seperately
Traceback (most recent call last):
File "C:/Users/Meridius/Desktop/auddit-master (1)/auddit-master/src/main.py", line 1, in
from tasks.scrape_reddit.task import get_hottest_post
File "C:\Users\Meridius\Desktop\auddit-master (1)\auddit-master\src\tasks\scrape_reddit\task.py", line 6, in
client_id = os.environ["MYKEYHERE"]
File "C:\Users\Meridius\AppData\Local\Programs\Python\Python38-32\lib\os.py", line 675, in getitem
raise KeyError(key) from None
KeyError: 'MYKEYHERE'
When running the reddit scrape test, I get an error that the client id is invalid. Does it take a certain amount of time for the client_id to get active or is something wrong? I have not written it wrong nor have I done any further changes in the script.
[blank]
Take a look at these repos
What other features are on these repos that are not on Auddit?
For reference https://github.com/RicoViking9000/profanityfilter and https://github.com/aarashy/profanityfilter might be useful.
File "src/main.py", line 1, in
from tasks.scrape_reddit.task import get_hottest_post
File "/root/auddit/src/tasks/scrape_reddit/task.py", line 6, in
client_id = os.environ["Vgn2wHKB1iqKSQ"]
File "/usr/lib/python3.6/os.py", line 669, in getitem
raise KeyError(key) from None
KeyError: 'MY KEY IS RIGHT HERE'
If the image is not in a normal format that can be fit in a 16:9 or 8:5 screen, and is "landscape" it should be in panorama mode, ideally based on information density of the image. However if it is portrait then it should at least show the image thumbnail before doing a top-to-bottom pan.
Because people might repost the same answers in one single thread.
Traceback (most recent call last):
File "C:\Users\43650\Desktop\tttyt\auddit-master\src\main.py", line 30, in
pipeline.execute(subreddit='askreddit', nsfw=False, comment_limit=30)
File "C:\Users\43650\Desktop\tttyt\auddit-master\src\main.py", line 26, in execute
task(self.context)
File "C:\Users\43650\Desktop\tttyt\auddit-master\src\tasks\scrape_reddit\task.py", line 40, in get_hottest_post
comment_output.author = comment.author.name
AttributeError: 'NoneType' object has no attribute 'name'
i guess its cause of deletet comments but i am not good enough to fix it by myselfe
Appear either line by line, or sentence by sentence. If too much text is show at once, it will overwhelm the viewer
Is there any way to use a couple of threads from a sub ?
Something like :
sub ->
5 best threads ->
10 best comments in every thread
This would help creating content based on meme-based subreddits, where images are king.
How do I edit the scrape reddit/ task.py so that I can input a specific reddit thread to get comments , instead of get hot posts , thanks.
Because crappy one-liner snarks that got bumped SHOULDN'T be included in the video.
And post-generation video snipping or editing is very inconvenient. Either:
With modern machine learning, there are better ways of TTS.
Hi, any advice on how I can fix the below errors. I am running Kali Linux as my OS. I have already set REDDIT_CLIENT_ID and REDDIT_CLIENT_SECRET using the export command in the terminal and confirming with echo.
┌──(kali㉿kali)-[~/Desktop/auddit]
└─$ python3 src/main.py
Current Task: get_hottest_post
Current Task: tts
TTS Rate limit reached - Fallback on Google text-to-speech
TTS Rate limit reached - Fallback on Google text-to-speech
TTS Rate limit reached - Fallback on Google text-to-speech
TTS Rate limit reached - Fallback on Google text-to-speech
TTS Rate limit reached - Fallback on Google text-to-speech
TTS Rate limit reached - Fallback on Google text-to-speech
TTS Rate limit reached - Fallback on Google text-to-speech
TTS Rate limit reached - Fallback on Google text-to-speech
TTS Rate limit reached - Fallback on Google text-to-speech
TTS Rate limit reached - Fallback on Google text-to-speech
TTS Rate limit reached - Fallback on Google text-to-speech
TTS Rate limit reached - Fallback on Google text-to-speech
TTS Rate limit reached - Fallback on Google text-to-speech
TTS Rate limit reached - Fallback on Google text-to-speech
TTS Rate limit reached - Fallback on Google text-to-speech
TTS Rate limit reached - Fallback on Google text-to-speech
TTS Rate limit reached - Fallback on Google text-to-speech
TTS Rate limit reached - Fallback on Google text-to-speech
TTS Rate limit reached - Fallback on Google text-to-speech
TTS Rate limit reached - Fallback on Google text-to-speech
TTS Rate limit reached - Fallback on Google text-to-speech
TTS Rate limit reached - Fallback on Google text-to-speech
TTS Rate limit reached - Fallback on Google text-to-speech
TTS Rate limit reached - Fallback on Google text-to-speech
TTS Rate limit reached - Fallback on Google text-to-speech
TTS Rate limit reached - Fallback on Google text-to-speech
TTS Rate limit reached - Fallback on Google text-to-speech
TTS Rate limit reached - Fallback on Google text-to-speech
TTS Rate limit reached - Fallback on Google text-to-speech
TTS Rate limit reached - Fallback on Google text-to-speech
TTS Rate limit reached - Fallback on Google text-to-speech
Current Task: generate_video
Traceback (most recent call last):
File "/home/kali/.local/lib/python3.9/site-packages/moviepy/video/VideoClip.py", line 1137, in __init__
subprocess_call(cmd, logger=None)
File "/home/kali/.local/lib/python3.9/site-packages/moviepy/tools.py", line 54, in subprocess_call
raise IOError(err.decode('utf8'))
OSError: convert-im6.q16: attempt to perform an operation not allowed by the security policy `@/tmp/tmpw_lr5lrb.txt' @ error/property.c/InterpretImageProperties/3706.
convert-im6.q16: no images defined `PNG32:/tmp/tmp8rngpnz4.png' @ error/convert.c/ConvertImageCommand/3229.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/kali/Desktop/auddit/src/main.py", line 28, in <module>
pipeline.execute(subreddit='askreddit', nsfw=False, comment_limit=20)
File "/home/kali/Desktop/auddit/src/main.py", line 24, in execute
task(self.context)
File "/home/kali/Desktop/auddit/src/tasks/generate_video/task.py", line 62, in generate_video
clips.append(generate_title(post.title, post.title_audio))
File "/home/kali/Desktop/auddit/src/tasks/generate_video/task.py", line 20, in generate_title
txt_clip = TextClip(wrapped_text,fontsize=font_size, font=FONT, color=TITLE_FONT_COLOR, align="west")
File "/home/kali/.local/lib/python3.9/site-packages/moviepy/video/VideoClip.py", line 1146, in __init__
raise IOError(error)
OSError: MoviePy Error: creation of None failed because of the following error:
convert-im6.q16: attempt to perform an operation not allowed by the security policy `@/tmp/tmpw_lr5lrb.txt' @ error/property.c/InterpretImageProperties/3706.
convert-im6.q16: no images defined `PNG32:/tmp/tmp8rngpnz4.png' @ error/convert.c/ConvertImageCommand/3229.
.
.This error can be due to the fact that ImageMagick is not installed on your computer, or (for Windows users) that you didn't specify the path to the ImageMagick binary in file conf.py, or that the path you specified is incorrect
┌──(kali㉿kali)-[~/Desktop/auddit]
└─$
(I have no idea why it keeps saying ImageMagick is not installed as it definitely is!)
Any help is greatly appreciated.
Everything is going smooth, but then it starts the generate_video task, and after a few seconds it says Killed. The script is then interrupted. No error output or anything?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.