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

Support for more than .wav files #8

Closed steveway closed 3 years ago

steveway commented 8 years ago

If I haven't missed anything then papagayo only supports .wav files at the moment. We might use something like this to convert other audio files on the fly: http://pymedia.org/tut/src/dump_wav.py.html Or, I would prefer pydub, maybe scrap using the wave library directly and instead use pydub: http://pydub.com/ BTW.: Hope I don't annoy with these "Issues", I'm trying to organize this a bit and mark some hopefully interesting workloads so we can make this thing great.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/32859605-support-for-more-than-wav-files?utm_campaign=plugin&utm_content=tracker%2F418652&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F418652&utm_medium=issues&utm_source=github).
steveway commented 8 years ago

My latest commit to testing has a first working version of using pydub for this. Tested on Windows. https://github.com/steveway/papagayo/commit/0feebd2e0adc04d007ab01cd7ada0cf01c537c6b

morevnaproject commented 8 years ago

I have merged your changes. Added a few tweaks:

steveway commented 8 years ago

Nice, I'll try the current state out and push this back to my fork later. I've got some more things I wan't to try to add.

steveway commented 6 years ago

Hi, I've been working on and off on the QT Port as you might have seen. In the mean time I've created a commit that should also work for the wx Version. I've replaced PyAudio with sounddevice, because PyAudio is less portable. Python 3.7 on Windows does not have a port yet available in PyPi. So you might want to cherry pick this commit: 8e7380c7a389301af53aed45a345f270426a94a3 I had some trouble getting an output using the Stream objects, so there is place for improvement (and testing).

steveway commented 3 years ago

Should be fixed. It's best to have FFmpeg downloaded, which can be done from inside Papagayo-NG.