Added function comment

pull/648/head
HallowedDust5 2 years ago
parent e23a150cd6
commit c9e497e5cf
No known key found for this signature in database
GPG Key ID: AAAAF940F1C8C004

@ -20,9 +20,13 @@ VIDEO_LENGTH: int = 40 # secs
def save_text_to_mp3(reddit_obj): def save_text_to_mp3(reddit_obj):
"""Saves Text to MP3 files. """Saves text to MP3 files. Goes through the reddit_obj and generates the title MP3 file and a certain number of comments until the total amount of time exceeds VIDEO_LENGTH seconds.
Args: Args:
reddit_obj : The reddit object you received from the reddit API in the askreddit.py file. reddit_obj (dict[str]): Reddit object received from reddit API in askreddit.py
Returns:
tuple[int,int]: (total length of the audio, the number of comments audio was generated for)
""" """
print_step("Saving Text to MP3 files...") print_step("Saving Text to MP3 files...")
length = 0 length = 0

Loading…
Cancel
Save