RedditVideoMakerBot icon indicating copy to clipboard operation
RedditVideoMakerBot copied to clipboard

[Bug]: Error: 'voice_choice'

Open catsmoker opened this issue 8 months ago • 1 comments

Describe the bug

KeyError: 'voice_choice'

if (
    not settings.config["settings"]["tts"]["tiktok_sessionid"]
    or settings.config["settings"]["tts"]["tiktok_sessionid"] == ""
) and config["settings"]["tts"]["voice_choice"] == "tiktok":
    print_substep(
        "TikTok voice requires a sessionid! Check our documentation on how to obtain one.",
        "bold red",
    )
    sys.exit()

Reproduction Steps

│ Config: {'allow_nsfw': True, 'theme': 'dark', 'times_to_run': 1, 'opacity': 0.9, 'storymode': False, 'storymodemethod': 1, 'storymode_max_length': 1000, 'resolution_w': │ │ 1080, 'resolution_h': 1920, 'zoom': 1.0, 'channel_name': 'Reddit Tales', 'background': {'background_video': 'minecraft', 'background_audio': 'lofi', │ │ 'background_audio_volume': 0.15, 'enable_extra_audio': False, 'background_thumbnail': False, 'background_thumbnail_font_family': 'arial', 'background_thumbnail_font_size': │ │ 96, 'background_thumbnail_font_color': '255,255,255'}, 'tts': {'random_voice': False, 'elevenlabs_voice_name': 'Adam', '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, 'openai_api_url': 'https://api.openai.com/', 'openai_api_key': 'REDACTED', 'openai_voice_name': 'alloy', 'openai_model': 'tts-1'}}

Expected behavior

.

Screenshots

No response

System Information

Operating System : Windows 11 Python version : latest App version / Branch : 3.4.0 develop

Checklist

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

Additional Context

No response

catsmoker avatar Jun 01 '25 00:06 catsmoker

What is the actual problem you are facing about "voice_choice"?

aditya-baniya-ai avatar Jun 04 '25 20:06 aditya-baniya-ai

Please provide reproduction steps, expected behavior and the full traceback

cyteon avatar Jun 05 '25 19:06 cyteon

It is due to this commit https://github.com/elebumm/RedditVideoMakerBot/commit/e137dbb40d7b6ed90ddf2e6a7b857a241508aa25

electro199 avatar Jun 06 '25 16:06 electro199

I'll make a commit to fix that

cyteon avatar Jun 06 '25 17:06 cyteon

Should be fixed now

cyteon avatar Jun 06 '25 17:06 cyteon