Skip to content

Commit

Permalink
Fix for user voice population (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfwithSword authored Jan 15, 2025
1 parent 181e3fd commit 3972658
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ui/widgets/member_card.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,10 @@ def create_widgets(self):
current_source = db_member.preferred_tts.source

self.tts_source_var = ctk.StringVar(value=current_source)
valid_sources = SOURCES[:]
if not self.config.get(section="ELEVENLABS", option="api_key"):
SOURCES.remove(SOURCE_11L)
self.tts_source_dropdown = ctk.CTkOptionMenu(self, values=SOURCES, variable=self.tts_source_var, command=self._update_voicelist)
valid_sources.remove(SOURCE_11L)
self.tts_source_dropdown = ctk.CTkOptionMenu(self, values=valid_sources, variable=self.tts_source_var, command=self._update_voicelist)

voices = self.tts[current_source].get_voices()
self.tts_options = list(voices.keys())
Expand Down

0 comments on commit 3972658

Please sign in to comment.