morevnaproject-org / papagayo-ng

Papagayo is a lip-syncing program designed to help you line up phonemes (mouth shapes) with the actual recorded sound of actors speaking. Papagayo makes it easy to lip sync animated characters by making the process very simple - just type in the words being spoken (or copy/paste them from the animation's script), then drag the words on top of the sound's waveform until they line up with the proper sounds.
236 stars 51 forks source link

Add CLI Interface #105

Open steveway opened 3 years ago

steveway commented 3 years ago

Since we have some neat functionality now with the automatic recognition using Rhubarb or Allosaurus, we might want to offer a CLI Interface. It should not be too complicated to add some options with argparse. So for the functionality there are a few things like:

Maybe also allowing to select directories containing multiple files so that the user can apply all the steps to several files at once.

This way a user could then create several files for his project. Example: A user has a folder containing some sound files for an Animation or Game Project. He wants to create some .json files for them to use in his project: papagayo-ng.py -i /path/to/files/ --use-allosaurus --export=json -o /path/to/save/json This would then open the files in the directory one by one apply allosaurus with default settings and export the result to the output (-o) directory. Something like this maybe.

steveway commented 3 years ago

I've begun some work on this on a new branch here: https://github.com/steveway/papagayo-ng/tree/cli_test