Rvc-gui Voice Models 2 1.2 ❲FHD❳

def convert_audio(self): if not self.selected_model: messagebox.showerror("Error", "No model selected") return input_file = filedialog.askopenfilename(filetypes=[("Audio Files", "*.wav *.mp3 *.flac")]) if not input_file: return out_file = tempfile.NamedTemporaryFile(suffix=".wav", delete=False).name self.status.config(text="Converting...") threading.Thread(target=self._run_conversion, args=(input_file, out_file), daemon=True).start()

# Model list list_frame = tk.Frame(root) list_frame.pack(fill=tk.BOTH, expand=True, padx=10, pady=5) self.tree = ttk.Treeview(list_frame, columns=("size", "modified"), show="tree") self.tree.heading("#0", text="Model Name") self.tree.heading("size", text="Size (MB)") self.tree.heading("modified", text="Modified") self.tree.column("#0", width=300) self.tree.column("size", width=80) self.tree.column("modified", width=120) self.tree.pack(side=tk.LEFT, fill=tk.BOTH, expand=True) scrollbar = ttk.Scrollbar(list_frame, orient=tk.VERTICAL, command=self.tree.yview) scrollbar.pack(side=tk.RIGHT, fill=tk.Y) self.tree.configure(yscrollcommand=scrollbar.set) self.tree.bind("<<TreeviewSelect>>", self.on_model_select) RVC-GUI Voice Models 2 1.2

# Top frame: directory selection top_frame = tk.Frame(root) top_frame.pack(pady=5, fill=tk.X, padx=10) tk.Label(top_frame, text="Models Folder:").pack(side=tk.LEFT) tk.Entry(top_frame, textvariable=self.models_dir, width=50).pack(side=tk.LEFT, padx=5) tk.Button(top_frame, text="Browse", command=self.browse_dir).pack(side=tk.LEFT) tk.Button(top_frame, text="Refresh", command=self.scan_models).pack(side=tk.LEFT, padx=5) def convert_audio(self): if not self

Яндекс.Метрика