Repository navigation
Description
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
- I have searched the open issues for duplicates.
- I have shown the entire traceback, if possible.
Additional Context
No response
Activity
aditya-baniya-ai commentedon Jun 4, 2025
What is the actual problem you are facing about "voice_choice"?
cyteon commentedon Jun 5, 2025
Please provide reproduction steps, expected behavior and the full traceback
electro199 commentedon Jun 6, 2025
It is due to this commit e137dbb
cyteon commentedon Jun 6, 2025
I'll make a commit to fix that
Add back voice_choice to config template, fixes #2318
cyteon commentedon Jun 6, 2025
Should be fixed now