RedditVideoMakerBot icon indicating copy to clipboard operation
RedditVideoMakerBot copied to clipboard

Problem occuring when I try to make a video

Open ElectricIceBird opened this issue 4 years ago • 45 comments

Traceback (most recent call last): File "C:\Users\WHO\AppData\Local\Programs\Python\Python37\lib\site-packages\requests\models.py", line 972, in json return complexjson.loads(self.text, **kwargs) File "C:\Users\WHO\AppData\Local\Programs\Python\Python37\lib\json_init_.py", line 348, in loads return _default_decoder.decode(s) File "C:\Users\WHO\AppData\Local\Programs\Python\Python37\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Users\WHO\AppData\Local\Programs\Python\Python37\lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "main.py", line 70, in main() File "main.py", line 48, in main length, number_of_comments = save_text_to_mp3(reddit_object) File "C:\Users\WHO\Desktop\Stuff\RedditVideoMakerBot-master\video_creation\voices.py", line 59, in save_text_to_mp3 random_speaker=False, File "C:\Users\WHO\Desktop\Stuff\RedditVideoMakerBot-master\TTS\POLLY.py", line 61, in tts if response.json()["error"] == "Text length is too long!": File "C:\Users\WHO\AppData\Local\Programs\Python\Python37\lib\site-packages\requests\models.py", line 976, in json raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0) System (please complete the following information):

  • Python Version: [e.g. Python 3.6]
  • OS: [e.g. Windows 11]
  • App version / Branch [e.g. latest, V2.0, master, develop ]

Additional context Add any other context about the problem here. This is what I have been getting

ElectricIceBird avatar Aug 20 '22 04:08 ElectricIceBird

The comment text is too long. You can adjust it in the config.toml.

OpenSourceSimon avatar Aug 20 '22 07:08 OpenSourceSimon

How much should I increase it?

ElectricIceBird avatar Aug 20 '22 07:08 ElectricIceBird

What is the value you have now? Btw you need to decrease it.

OpenSourceSimon avatar Aug 20 '22 07:08 OpenSourceSimon

500

ElectricIceBird avatar Aug 20 '22 07:08 ElectricIceBird

Then you can try 250

OpenSourceSimon avatar Aug 20 '22 07:08 OpenSourceSimon

also what is this storymode thing?

ElectricIceBird avatar Aug 20 '22 07:08 ElectricIceBird

giving me same error

ElectricIceBird avatar Aug 20 '22 07:08 ElectricIceBird

also what is this storymode thing?

Do you have that on? Because that is not yet implemented. It is that the program only reads the title and description.

OpenSourceSimon avatar Aug 20 '22 07:08 OpenSourceSimon

Oh ok

ElectricIceBird avatar Aug 20 '22 07:08 ElectricIceBird

I just turned it on to check it out

ElectricIceBird avatar Aug 20 '22 07:08 ElectricIceBird

And does it work now?

OpenSourceSimon avatar Aug 20 '22 07:08 OpenSourceSimon

nope gave me a error

ElectricIceBird avatar Aug 20 '22 07:08 ElectricIceBird

nope gave me a error

The same one?

OpenSourceSimon avatar Aug 20 '22 07:08 OpenSourceSimon

Yes the same one

ElectricIceBird avatar Aug 20 '22 07:08 ElectricIceBird

Yes the same one

Weird, maybe use an other TTS

OpenSourceSimon avatar Aug 20 '22 07:08 OpenSourceSimon

TTS?

ElectricIceBird avatar Aug 20 '22 07:08 ElectricIceBird

How can I do that?

ElectricIceBird avatar Aug 20 '22 07:08 ElectricIceBird

TTS is the software that speaks the text (Text to speech). You can change it in the config.toml by voice_choice

OpenSourceSimon avatar Aug 20 '22 07:08 OpenSourceSimon

Wait I am Config.py not config.toml where is that?

ElectricIceBird avatar Aug 20 '22 07:08 ElectricIceBird

Wait I am Config.py not config.toml where is that?

In the main folder where the main.py also is

OpenSourceSimon avatar Aug 20 '22 07:08 OpenSourceSimon