FlorianEagox / WeeaBlind

A program to dub non-english media with modern AI speech synthesis, diarization, and voice cloning!
https://tessapainter.com/project/WeeaBlind
284 stars 26 forks source link

Optional, dynamic dependencies at Python runtime #3

Open ArtyomVancyan opened 1 year ago

ArtyomVancyan commented 1 year ago

Hi @FlorianEagox, can you list the libraries that should be installed based on the operating system and running options? At https://stackoverflow.com/questions/77084311, you did not mention any library names or which one should be used for a particular OS.

FlorianEagox commented 11 months ago

Ahoy there! Thanks so much for reaching out and sorry it's taken me so long to get into this feature. I've been deliberating a lot. Basically, I'd like to be able to let the user choose certain features they want to install at runtime. So if you realize you want diarization, when you click the diarize button, you'll be prompted to install it to the venv if it's not installed, and the code will start a pip install.

Eveventually, it would be cool (not sure if it's possible tho) to publish binary executables that can still install packages with pip. Maybe a binary that can deploy the venv automatically?

The list of optional packages should be

Coqui TTS Pyannote Audio Spleeter Speechbrain YouTube DLP

All these packages together take up a ton of space and may never actually be used depending on the user's needs.

If this is something you know how to do, feel free to give me guidance or even consider contributing c: