elebumm / RedditVideoMakerBot

Create Reddit Videos with just✨ one command ✨
GNU General Public License v3.0
6.65k stars 1.86k forks source link

[Bug]: cant open #1394

Closed muraroboy closed 1 year ago

muraroboy commented 1 year ago

Describe the bug

Tiktok ┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ Saving Text to MP3 files... │ └─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ Traceback (most recent call last): File "C:\Users\chad\RedditVideoMakerBot\main.py", line 83, in run_many(config["settings"]["times_to_run"]) File "C:\Users\chad\RedditVideoMakerBot\main.py", line 62, in run_many main() File "C:\Users\chad\RedditVideoMakerBot\main.py", line 48, in main length, number_of_comments = save_text_to_mp3(reddit_object) File "C:\Users\chad\RedditVideoMakerBot\video_creation\voices.py", line 50, in save_text_to_mp3 return text_to_mp3.run() File "C:\Users\chad\RedditVideoMakerBot\TTS\engine_wrapper.py", line 61, in run self.call_tts("title", process_text(self.reddit_object["thread_title"])) File "C:\Users\chad\RedditVideoMakerBot\TTS\engine_wrapper.py", line 117, in call_tts self.tts_module.run(text, filepath=f"{self.path}/{filename}.mp3") File "C:\Users\chad\RedditVideoMakerBot\TTS\TikTok.py", line 94, in run vstr = [r.json()["data"]["v_str"]][0] KeyError: 'data'

Reproduction Steps

normal install.

Expected behavior

close

Screenshots

No response

System Information

win10 python 3.10

Checklist

Additional Context

No response

roxerj commented 1 year ago

I have the exact same error.

fin-github commented 1 year ago

I cant figure this one out exactly. If you want to try to finish this error, I would read the instalation documentation to get it done exactly. Also are you using py3.10 .9 ?

muraroboy commented 1 year ago

iwas using tiktok Em seg., 19 de dez. de 2022 às 15:20, fin-github @.***> escreveu:

I cant figure this one out exactly. If you want to try to finish this error, I would read the instalation documentation to get it done exactly. Also are you using py3.10 .9 ?

— Reply to this email directly, view it on GitHub https://github.com/elebumm/RedditVideoMakerBot/issues/1394#issuecomment-1358062952, or unsubscribe https://github.com/notifications/unsubscribe-auth/APGZFPZ6H62JCQBB44WLB7TWOCROPANCNFSM6AAAAAATCY6B6E . You are receiving this because you authored the thread.Message ID: @.***>

lierrejh commented 1 year ago

pip3.10 install moviepy --upgrade

This is the fix. Tried and tested!

Matsumotorise commented 1 year ago

Same issue here, upgrading moviepy did nothing.

fin-github commented 1 year ago

As shown in the lewis discord the tiktok voice API is not compatible with the code yet! You may want to try a different voice. A quick fix is to put the following text as your [settings.tts] config code:

voice_choice = "streamlabspolly"

aws_polly_voice = "Matthew"

streamlabs_polly_voice = "Matthew"

tiktok_voice = "en_us_006"

python_voice = "1"

py_voice_num = "2"

twhlynch commented 1 year ago

I changed voice_choice from "tiktok" to "pyttsx" and the issue was fixed. It seems the TikTok TTS just doesn't work currently.