Skip to content

[Bug]: Error: Code: 1, reason: probably the aid value isn't correct, message: Couldn’t load speech. #2332

Open
@tim-gromeyer

Description

@tim-gromeyer

Describe the bug

TikTok tts fails

Reproduction Steps

Create distrobox container with Ubuntu 22.04 --> run install script --> use tiktok (and configure sessionid) --> run script

Expected behavior

TTS working

Screenshots

No response

System Information

Operating System : Ubuntu 22.04 Container (distrobox)
Python version : 3.10
App version / Branch : master

Checklist

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

Additional Context

╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Saving Text to MP3 files...                                                                                                                                                                           │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Sorry, something went wrong with this version! Try again, and feel free to report this issue at GitHub or the Discord community.                                                                      │
│ Version: 3.3.0                                                                                                                                                                                        │
│ Error: Code: 1, reason: probably the aid value isn't correct, message: Couldn’t load speech. Try again.                                                                                               │
│ Config: {'allow_nsfw': False, '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': {'voice_choice':          │
│ 'tiktok', 'random_voice': True, 'elevenlabs_voice_name': 'Bella', '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}}                                                                               │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Traceback (most recent call last):
  File "/home/tim/RedditVideoMakerBot-master/./main.py", line 131, in <module>
    raise err
  File "/home/tim/RedditVideoMakerBot-master/./main.py", line 113, in <module>
    run_many(config["settings"]["times_to_run"])
  File "/home/tim/RedditVideoMakerBot-master/./main.py", line 68, in run_many
    main()
  File "/home/tim/RedditVideoMakerBot-master/./main.py", line 50, in main
    length, number_of_comments = save_text_to_mp3(reddit_object)
  File "/home/tim/RedditVideoMakerBot-master/video_creation/voices.py", line 49, in save_text_to_mp3
    return text_to_mp3.run()
  File "/home/tim/RedditVideoMakerBot-master/TTS/engine_wrapper.py", line 74, in run
    self.call_tts("title", process_text(self.reddit_object["thread_title"]))
  File "/home/tim/RedditVideoMakerBot-master/TTS/engine_wrapper.py", line 147, in call_tts
    self.tts_module.run(
  File "/home/tim/RedditVideoMakerBot-master/TTS/TikTok.py", line 109, in run
    raise TikTokTTSException(status_code, data["message"])
TTS.TikTok.TikTokTTSException: Code: 1, reason: probably the aid value isn't correct, message: Couldn’t load speech. Try again.

Metadata

Metadata

Assignees

Labels

Check up neededMight be able to delete this soon check up on it againbugSomething isn't workingttsConcerns TTS engine

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions