Skip to content

[Bug]: Error: 'voice_choice' #2318

Closed
Closed

Description

@catsmoker

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

  1. added
    bug
    on Jun 1, 2025
  2. aditya-baniya-ai commented on Jun 4, 2025

    @aditya-baniya-ai

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

  3. added
    invalid
    question
    on Jun 5, 2025
  4. cyteon commented on Jun 5, 2025

    @cyteon
    Collaborator

    Please provide reproduction steps, expected behavior and the full traceback

  5. electro199 commented on Jun 6, 2025

    @electro199
    Contributor

    It is due to this commit e137dbb

  6. cyteon commented on Jun 6, 2025

    @cyteon
    Collaborator

    I'll make a commit to fix that

  7. added a commit that references this issue on Jun 6, 2025
    35514b4
  8. cyteon commented on Jun 6, 2025

    @cyteon
    Collaborator

    Should be fixed now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buginvalidquestion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions