From 50ad50e98bc647f9499ef3089157356f412ff3d4 Mon Sep 17 00:00:00 2001 From: "DHR.Mike" Date: Tue, 9 Dec 2025 10:24:23 -0800 Subject: [PATCH] Update Uptated-Prototype/PiperTTS-GUI-Test.py --- Uptated-Prototype/PiperTTS-GUI-Test.py | 39 ++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 3 deletions(-) diff --git a/Uptated-Prototype/PiperTTS-GUI-Test.py b/Uptated-Prototype/PiperTTS-GUI-Test.py index a73cd64..2725375 100644 --- a/Uptated-Prototype/PiperTTS-GUI-Test.py +++ b/Uptated-Prototype/PiperTTS-GUI-Test.py @@ -26,13 +26,16 @@ try: Input_Box_Frame = Frame(Root_Window) except: print("An exception occurred - when creating input Frame.") - # Attempts to create a Controls Frame try: Controls_Box_Frame = Frame(Root_Window) except: print("An exception occurred - when creating Controls Frame.") - +# Attempts to create a Prefrences Frame +try: + Prefrences_Frame = Frame(Root_Window) +except: + print("An exception occurred - when creating Controls Frame.") # Attempts to Place Input and Controls frames try: Input_Box_Frame.place(x = 0, y = 0, relwidth = 1, relheight = 0.7) @@ -162,7 +165,8 @@ def PiperTTS_GUI_Randomize_Text(): def PiperTTS_GUI_Set_Prefrences(): try: Input_Box_Frame.place_forget() - Controls_Box_Frame.place_forget() + Controls_Box_Frame.place_forget() + Prefrences_Frame.place(x = 0, y = 0, relwidth = 1, relheight = 1) except: print("An exception occurred - when Setting prefrences.") @@ -205,6 +209,35 @@ C_Button_Stop.grid(row=1, column=2) C_Button_previous.grid(row=1, column=3) C_Button_Next.grid(row=1, column=4) +# Prefrences stuff +GUI_Combobox_1_Label = Label(Prefrences_Frame, text="Language?") +GUI_Combobox_1 = Combobox(Prefrences_Frame) +GUI_Combobox_2_Label = Label(Prefrences_Frame, text="Voice?") +GUI_Combobox_2 = Combobox(Prefrences_Frame) +GUI_Spinbox_1_Label = Label(Prefrences_Frame, text="volume?") +GUI_Spinbox_1 = Spinbox(Prefrences_Frame, from_ = 1, to = 100) +GUI_Spinbox_2_Label = Label(Prefrences_Frame, text="length_scale?") +GUI_Spinbox_2 = Spinbox(Prefrences_Frame, from_ = 1.0, to = 2.0) +GUI_Spinbox_3_Label = Label(Prefrences_Frame, text="noise_scale?") +GUI_Spinbox_3 = Spinbox(Prefrences_Frame, from_ = 1.0, to = 2.0) +GUI_Spinbox_4_Label = Label(Prefrences_Frame, text="noise_w_scale?") +GUI_Spinbox_4 = Spinbox(Prefrences_Frame, from_ = 1.0, to = 2.0) +GUI_Checkbutton_1 = Checkbutton(Prefrences_Frame, text="normalize_audio?") +# Prefrences placement +GUI_Combobox_1_Label.pack() +GUI_Combobox_1.pack() +GUI_Combobox_2_Label.pack() +GUI_Combobox_2.pack() +GUI_Spinbox_1_Label.pack() +GUI_Spinbox_1.pack() +GUI_Spinbox_2_Label.pack() +GUI_Spinbox_2.pack() +GUI_Spinbox_3_Label.pack() +GUI_Spinbox_3.pack() +GUI_Spinbox_4_Label.pack() +GUI_Spinbox_4.pack() +GUI_Checkbutton_1.pack() + #Creating Toolbar menu Root_Toolbar = Menu(Root_Window) Root_Window.configure(menu=Root_Toolbar)