diff --git a/.env.template b/.env.template index bd0a79e..9f14b65 100644 --- a/.env.template +++ b/.env.template @@ -10,3 +10,6 @@ THEME="" # Enter a subreddit, e.g. "AskReddit" SUBREDDIT="" + +Valid options are "male" and "female" for the variable below +VoiceGender="" diff --git a/README.md b/README.md index dbb0250..a5e7768 100644 --- a/README.md +++ b/README.md @@ -49,5 +49,5 @@ I have tried to simplify the code so anyone can read it and start contributing a - [ ] Allowing users to choose a reddit thread instead of being randomized. - [ ] Allowing users to choose a background that is picked instead of the Minecraft one. - [x] Allowing users to choose between any subreddit. -- [ ] Allowing users to change voice. +- [x] Allowing users to change voice. - [ ] Creating better documentation and adding a command line interface. diff --git a/reddit/subreddit.py b/reddit/subreddit.py index 1d47974..216b1ee 100644 --- a/reddit/subreddit.py +++ b/reddit/subreddit.py @@ -10,8 +10,8 @@ def get_subreddit_threads(): """ load_dotenv() - - print_step("Getting AskReddit threads...") + _SUBREDDIT = os.getenv("SUBREDDIT") + print_step(f"Getting {_SUBREDDIT} threads...") if os.getenv("REDDIT_2FA", default="no").casefold() == "yes": print( diff --git a/requirements.txt b/requirements.txt index fd28b7f..eb5b22e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,8 @@ -gTTS==2.2.4 +librosa==0.9.1 moviepy==1.0.3 -mutagen==1.45.1 playwright==1.22.0 praw==7.6.0 python-dotenv==0.20.0 +pyttsx3==2.90 rich==12.4.4 yt_dlp==2022.5.18