-
Notifications
You must be signed in to change notification settings - Fork 427
Description
Description of the bug:
╭──────────────────────────────────────────────────────────────╮
│ 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: 'Voice' object has no attribute 'voice_name' │
│ 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, │
│ 'channel_name': 'ReddiTory', 'background': │
│ {'background_video': 'minecraft', 'background_audio': │
│ 'chill-summer', 'background_audio_volume': 0.15, │
│ 'enable_extra_audio': False, 'background_thumbnail': False, │
│ 'background_thumbnail_font_family': 'inter', │
│ 'background_thumbnail_font_size': 96, │
│ 'background_thumbnail_font_color': '255,255,255'}, 'tts': │
│ {'voice_choice': 'elevenlabs', 'random_voice': True, │
│ 'elevenlabs_voice_name': 'Adam', 'elevenlabs_api_key': │
│ 'REDACTED', 'aws_polly_voice': 'n', │
│ '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 "C:\Users\LosRava\RedditVideoMakerBot\main.py", line 131, in
raise err
File "C:\Users\LosRava\RedditVideoMakerBot\main.py", line 113, in
run_many(config["settings"]["times_to_run"])
File "C:\Users\LosRava\RedditVideoMakerBot\main.py", line 68, in run_many
main()
File "C:\Users\LosRava\RedditVideoMakerBot\main.py", line 50, in main
length, number_of_comments = save_text_to_mp3(reddit_object)
File "C:\Users\LosRava\RedditVideoMakerBot\video_creation\voices.py", line 49, in save_text_to_mp3
return text_to_mp3.run()
File "C:\Users\LosRava\RedditVideoMakerBot\TTS\engine_wrapper.py", line 74, in run
self.call_tts("title", process_text(self.reddit_object["thread_title"]))
File "C:\Users\LosRava\RedditVideoMakerBot\TTS\engine_wrapper.py", line 147, in call_tts
self.tts_module.run(
File "C:\Users\LosRava\RedditVideoMakerBot\TTS\elevenlabs.py", line 18, in run
voice = self.randomvoice()
File "C:\Users\LosRava\RedditVideoMakerBot\TTS\elevenlabs.py", line 38, in randomvoice
return random.choice(self.client.voices.get_all().voices).voice_name
File "C:\Users\LosRava\AppData\Local\Programs\Python\Python310\lib\site-packages\pydantic\main.py", line 891, in getattr
raise AttributeError(f'{type(self).name!r} object has no attribute {item!r}')
AttributeError: 'Voice' object has no attribute 'voice_name'
PS C:\Users\LosRava\RedditVideoMakerBot>
Actual vs expected behavior:
No response
Any other information you'd like to share?
No response