You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
440 B
14 lines
440 B
from utils.console import print_step, print_substep
|
|
from rich.progress import track
|
|
from tts.engine_wrapper import TTSEngine
|
|
import tts.google_translate_tts
|
|
|
|
def save_text_to_mp3(reddit_obj):
|
|
"""Saves Text to MP3 files.
|
|
|
|
Args:
|
|
reddit_obj : The reddit object you received from the reddit API in the askreddit.py file.
|
|
"""
|
|
text_to_mp3 = TTSEngine(tts.google_translate_tts.run, reddit_obj)
|
|
return text_to_mp3.run()
|