print("Hey! Congratulations, you've made it so far (which is pretty rare with no Python 3.10). Unfortunately, this program only works on Python 3.10. Please install Python 3.10 and try again.")
storymode_max_length={optional=true,default=1000,example=1000,explanation="Max length of the storymode video in characters. 200 characters are approximately 50 seconds.",type="int",nmin=1,oob_error="It's very hard to make a video under a second."}
resolution_w={optional=false,default=1080,example=1440,explantation="Sets the width in pixels of the final video"}
resolution_h={optional=false,default=1920,example=2560,explantation="Sets the height in pixels of the final video"}
zoom={optional=true,default=1,example=1.1,explanation="Sets the browser zoom level. Useful if you want the text larger.",type="float",nmin=0.1,nmax=2,oob_error="The text is really difficult to read at a zoom level higher than 2"}
[settings.background]
background_choice={optional=true,default="minecraft",example="rocket-league",options=["minecraft","gta","rocket-league","motor-gta","csgo-surf","cluster-truck","minecraft-2","multiversus","fall-guys","steep",""],explanation="Sets the background for the video based on game name"}
#background_audio = { optional = true, type = "bool", default = false, example = false, options = [true, false,], explanation = "Sets a audio to play in the background (put a background.mp3 file in the assets/backgrounds directory for it to be used.)" }
#background_audio_volume = { optional = true, type = "float", default = 0.3, example = 0.1, explanation="Sets the volume of the background audio. only used if the background_audio is also set to true" }
background_video={optional=true,default="minecraft",example="rocket-league",options=["minecraft","gta","rocket-league","motor-gta","csgo-surf","cluster-truck","minecraft-2","multiversus","fall-guys","steep",""],explanation="Sets the background for the video based on game name"}
background_audio={optional=true,default="lofi",example="chill-summer",options=["lofi","lofi-2","chill-summer",""],explanation="Sets the background audio for the video"}
background_audio_volume={optional=true,type="float",nmin=0,nmax=1,default=0.15,example=0.05,explanation="Sets the volume of the background audio. If you don't want background audio, set it to 0.",oob_error="The volume HAS to be between 0 and 1",input_error="The volume HAS to be a float number between 0 and 1"}
enable_extra_audio={optional=true,type="bool",default=false,example=false,explanation="Used if you want to render another video without background audio in a separate folder",input_error="The value HAS to be true or false"}
background_thumbnail={optional=true,type="bool",default=false,example=false,options=[true,false,],explanation="Generate a thumbnail for the video (put a thumbnail.png file in the assets/backgrounds directory.)"}
background_thumbnail_font_family={optional=true,default="arial",example="arial",explanation="Font family for the thumbnail text"}
background_thumbnail_font_size={optional=true,type="int",default=96,example=96,explanation="Font size in pixels for the thumbnail text"}
voice_choice={optional=false,default="tiktok",options=["elevenlabs","streamlabspolly","tiktok","googletranslate","awspolly","pyttsx",],example="tiktok",explanation="The voice platform used for TTS generation. "}
random_voice={optional=false,default=true,example=true,options=[true,false,],explanation="Randomizes the voice used for each comment"}
elevenlabs_voice_name={optional=false,default="Bella",example="Bella",explanation="The voice used for elevenlabs",options=["Adam","Antoni","Arnold","Bella","Domi","Elli","Josh","Rachel","Sam",]}
elevenlabs_api_key={optional=true,example="21f13f91f54d741e2ae27d2ab1b99d59",explanation="Elevenlabs API key"}
aws_polly_voice={optional=false,default="Matthew",example="Matthew",explanation="The voice used for AWS Polly"}
streamlabs_polly_voice={optional=false,default="Matthew",example="Matthew",explanation="The voice used for Streamlabs Polly"}
tiktok_voice={optional=true,default="en_us_001",example="en_us_006",explanation="The voice used for TikTok TTS"}
tiktok_sessionid={optional=true,example="c76bcc3a7625abcc27b508c7db457ff1",explanation="TikTok sessionid needed for the TTS API request. Check documentation if you don't know how to obtain it." }
tiktok_sessionid={optional=true,example="c76bcc3a7625abcc27b508c7db457ff1",explanation="TikTok sessionid needed if you're using the TikTok TTS. Check documentation if you don't know how to obtain it." }
python_voice={optional=false,default="1",example="1",explanation="The index of the system tts voices (can be downloaded externally, run ptt.py to find value, start from zero)"}
py_voice_num={optional=false,default="2",example="2",explanation="The number of system voices (2 are pre-installed in Windows)"}
silence_duration={optional=true,example="0.1",explanation="Time in seconds between TTS comments",default=0.3,type="float"}
print("FFmpeg installed successfully! Please restart your computer and then re-run the program.")
exit()
exceptExceptionase:
@ -81,4 +81,4 @@ def ffmpeg_install():
exceptExceptionase:
print("Welcome fellow traveler! You're one of the few who have made it this far. We have no idea how you got at this error, but we're glad you're here. Please report this error to the developer, and we'll try to fix it as soon as possible. Thank you for your patience!")