lukaszliniewicz / Pandrator

Turn PDFs and EPUBs into audiobooks, subtitles or videos into dubbed videos (including translation), and more. For free. Pandrator uses local models, notably XTTS, including voice-cloning (instant, RVC-enhanced, XTTS fine-tuning) and LLM processing. It aspires to be a user-friendly app with a GUI, an installer and all-in-one packages.
GNU Affero General Public License v3.0
344 stars 25 forks source link

Ability to resume work non-destructively #61

Open luckyluca opened 2 weeks ago

luckyluca commented 2 weeks ago

Discussed in https://github.com/lukaszliniewicz/Pandrator/discussions/60

Originally posted by **luckyluca** November 3, 2024 Hi, I finally managed to get it all working (thank you Lukasz!) When loading a session, existing .srt files and wav files get deleted, and the interface does not resemble the previous setup. So for instance, if I wanted to open up an existing session and just change the voice and regenerate wav files and re-export a dubbed video, that is not possible currently. Would it be possible to store the snapshot of the interface and audio/text settings in the json and have those settings loaded when loading? And of course existing .srt files should not be deleted
lukaszliniewicz commented 2 weeks ago

Selecting existing files should be possible now, please update Pandrator and check if it works. When you load a session and select a file from its folder, no files should be removed. What you can also do, of course, is create a new session, select the (translated) .srt file from the first one and then select the original video in the Dubbing Frame. I will implement saving/loading UI settings, but it will take some time. At least file handling should be ok now. Let me know if there are any issues.