RedditVideoMakerBot icon indicating copy to clipboard operation
RedditVideoMakerBot copied to clipboard

KEY ERROR: speak_url

Open mlvps opened this issue 4 years ago • 5 comments

I get this error every once in a while:

Traceback (most recent call last): File "C:\Users\User\Desktop\Reddit Bot\main.py", line 73, in <module> main() File "C:\Users\User\Desktop\Reddit Bot\main.py", line 64, in main length, number_of_comments = save_text_to_mp3(reddit_object, os.getenv("VOICE")) File "C:\Users\User\Desktop\Reddit Bot\video_creation\voices.py", line 78, in save_text_to_mp3 generate_and_save_title(voice, thread_title, sleep_time, thread_post, filename=f"assets/temp/mp3/title.mp3") File "C:\Users\User\Desktop\Reddit Bot\video_creation\voices.py", line 38, in generate_and_save_title voice_data = requests.get(response.json()['speak_url']) KeyError: 'speak_url'

Is there any fix for this?

mlvps avatar Jun 17 '22 19:06 mlvps

Try the latest version

JasonLovesDoggo avatar Jun 18 '22 02:06 JasonLovesDoggo

Try the latest version

I customized a lot, so I cant just use the latest version :( Do you know how I could possibly fix this? Its from the old gTTs code.

mlvps avatar Jun 18 '22 07:06 mlvps

Try the latest version

I customized a lot, so I cant just use the latest version :( Do you know how I could possibly fix this? Its from the old gTTs code.

Uhhhhh What exactly did you customize because I mean any features you added probably already exist and you could still use GTTS in the newest version

JasonLovesDoggo avatar Jun 18 '22 16:06 JasonLovesDoggo

Try the latest version

I customized a lot, so I cant just use the latest version :( Do you know how I could possibly fix this? Its from the old gTTs code.

Uhhhhh What exactly did you customize because I mean any features you added probably already exist and you could still use GTTS in the newest version

idk a lot of stuff🥲 Where can I find the newest gTts tho?

mlvps avatar Jun 18 '22 17:06 mlvps

Master branch

Also can you push your changes to a GitHub repository

JasonLovesDoggo avatar Jun 18 '22 17:06 JasonLovesDoggo