elebumm / RedditVideoMakerBot

Create Reddit Videos with just✨ one command ✨

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: getting an error after "translating text"

andrewgr1234 opened this issue · comments

Describe the bug

after i run the app and get to the translating text part i get this in the console

Reproduction Steps

run the app

Logging into Reddit.
Version 7.7.0 of praw is outdated. Version 7.7.1 was released Tuesday July 11, 2023.
╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Getting subreddit threads...                                                                                                                                                                                  │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Using subreddit: r/story+stories+PointlessStories+tifu+confessions from TOML config
Video will be: I sucked my friends dick to make him feel better (F19) 👍
Thread url is: https://reddit.com/r/confessions/comments/1c3tuug/i_sucked_my_friends_dick_to_make_him_feel_better/ 👍
Thread has 641 upvotes
Thread has a upvote ratio of 77.0%
Thread has 217 comments
Received subreddit threads Successfully.
Thread ID is 1c3tuug
╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Saving Text to MP3 files...                                                                                                                                                                                   │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Translating Text...
╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Sorry, something went wrong with this version! Try again, and feel free to report this issue at GitHub or the Discord community.                                                                              │
│ Version: 3.2.1                                                                                                                                                                                                │
│ Error: Code: 1, reason: probably the aid value isn't correct, message: Couldn’t load speech. Try again.                                                                                                       │
│ Config: {'allow_nsfw': True, 'theme': 'dark', 'times_to_run': 5, 'opacity': 0.9, 'storymode': False, 'storymodemethod': 1, 'storymode_max_length': 1000, 'resolution_w': 1080, 'resolution_h': 1920, 'zoom':  │
│ 1.0, 'background': {'background_video': '', 'background_audio': 'lofi', 'background_audio_volume': 0.15, 'enable_extra_audio': False, 'background_thumbnail': True, 'background_thumbnail_font_family':       │
│ 'arial', 'background_thumbnail_font_size': 96, 'background_thumbnail_font_color': '255,255,255'}, 'tts': {'voice_choice': 'tiktok', 'random_voice': True, 'elevenlabs_voice_name': 'Arnold',                  │
│ 'elevenlabs_api_key': 'REDACTED', 'aws_polly_voice': 'Matthew', 'streamlabs_polly_voice': 'Matthew', 'tiktok_voice': 'en_us_001', 'tiktok_sessionid': 'REDACTED', 'python_voice': '1', 'py_voice_num': '2',   │
│ 'silence_duration': 0.3, 'no_emojis': False}}                                                                                                                                                                 │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Traceback (most recent call last):
  File "C:\Users\win10\Desktop\RedditVideoMakerBot\main.py", line 123, in <module>
    raise err
  File "C:\Users\win10\Desktop\RedditVideoMakerBot\main.py", line 105, in <module>
    run_many(config["settings"]["times_to_run"])
  File "C:\Users\win10\Desktop\RedditVideoMakerBot\main.py", line 60, in run_many
    main()
  File "C:\Users\win10\Desktop\RedditVideoMakerBot\main.py", line 42, in main
    length, number_of_comments = save_text_to_mp3(reddit_object)
  File "C:\Users\win10\Desktop\RedditVideoMakerBot\video_creation\voices.py", line 49, in save_text_to_mp3
    return text_to_mp3.run()
  File "C:\Users\win10\Desktop\RedditVideoMakerBot\TTS\engine_wrapper.py", line 76, in run
    self.call_tts("title", process_text(self.reddit_object["thread_title"]))
  File "C:\Users\win10\Desktop\RedditVideoMakerBot\TTS\engine_wrapper.py", line 149, in call_tts
    self.tts_module.run(
  File "C:\Users\win10\Desktop\RedditVideoMakerBot\TTS\TikTok.py", line 109, in run
    raise TikTokTTSException(status_code, data["message"])
TTS.TikTok.TikTokTTSException: Code: 1, reason: probably the aid value isn't correct, message: Couldn’t load speech. Try again.
An error occurred. Press any key to exit.

Expected behavior

i did erything as said and it all works fine until the translating text part then it just crashes and gives me the option to press anything to quit

Screenshots

image

System Information

Operating System : Windows 11
Python version : Python 3.10
App version / Branch : master

Checklist

  • I have searched the open issues for duplicates.
  • I have shown the entire traceback, if possible.

Additional Context

No response

see my comment in #2017