From 9b8cbb82cd6e8d3e0c96938082c57ee8061e6330 Mon Sep 17 00:00:00 2001 From: "DHR.Mike" Date: Sat, 13 Dec 2025 15:43:09 -0800 Subject: [PATCH] Update Uptated-Prototype/PiperTTS-GUI-Test.py --- Uptated-Prototype/PiperTTS-GUI-Test.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Uptated-Prototype/PiperTTS-GUI-Test.py b/Uptated-Prototype/PiperTTS-GUI-Test.py index 726ebe9..518c708 100644 --- a/Uptated-Prototype/PiperTTS-GUI-Test.py +++ b/Uptated-Prototype/PiperTTS-GUI-Test.py @@ -46,6 +46,7 @@ mylist = list(dict.fromkeys(mylist)) mylist_code = list(dict.fromkeys(mylist_code)) mylist_String = StringVar(value = "Languages") +mylist_String_Two = StringVar(value = "Voices") # Attempts to create a Input Frame try: @@ -235,12 +236,13 @@ def PiperTTS_GUI_Set_Prefrences(): # def Select_Voice_For_Language(Mylanguages): x = mylist.index(Mylanguages) - mylist2 = [] + mylist2 = ["Voices"] for voice_id, info in data.items(): if info["language"]["code"] == mylist_code[x]: mylist2.append(f"{info["name"]}") mylist2 = list(dict.fromkeys(mylist2)) + GUI_Combobox_2["values"] = mylist2 print(mylist2) @@ -336,12 +338,13 @@ GUI_Combobox_1_Label = Label(Prefrences_Frame, text="Language?") GUI_Combobox_1 = ttk.Combobox(Prefrences_Frame, textvariable = mylist_String) # GUI_Combobox_1["values"] = mylist + #GUI_Combobox_1.bind("<>", lambda event: print(mylist_String.get().split(" ", 1)[0])) GUI_Combobox_1.bind("<>", lambda event: Select_Voice_For_Language(mylist_String.get())) # GUI_Combobox_2_Label = Label(Prefrences_Frame, text="Voice?") -GUI_Combobox_2 = ttk.Combobox(Prefrences_Frame) +GUI_Combobox_2 = ttk.Combobox(Prefrences_Frame, textvariable = mylist_String_Two) GUI_Spinbox_1_Label = Label(Prefrences_Frame, text="volume?") GUI_Spinbox_1 = ttk.Spinbox(Prefrences_Frame, from_ = 1, to = 100) GUI_Spinbox_2_Label = Label(Prefrences_Frame, text="length_scale?")