steveway / 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.
http://steveway.github.io/papagayo-ng/
19 stars 3 forks source link

Unable to run in conda env #43

Open Hunanbean-Collective opened 3 months ago

Hunanbean-Collective commented 3 months ago

Hello again. I just tried to build this latest iteration, and ran into some trouble. this may of course all be user error in the end.

I installed a conda env with python 3.9 I then ran pip install -r requirements.txt at the end of the install there, i got this message

Building wheels for collected packages: webrtcvad Building wheel for webrtcvad (setup.py) ... error error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [9 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-39
      copying webrtcvad.py -> build\lib.win-amd64-cpython-39
      running build_ext
      building '_webrtcvad' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for webrtcvad
  Running setup.py clean for webrtcvad
Failed to build webrtcvad
ERROR: Could not build wheels for webrtcvad, which is required to install pyproject.toml-based projects

to solve this, i used conda install -c conda-forge webrtcvad but then, when i run papagayo-ng.py, i get a message flashing about ffmpeg not available, and then the env terminal closes. so i then install ffmpeg into the env with conda install ffmpeg I try to run python papagayo-ng.py again, and the terminal just closes. so, i do not know what to do at this point, or have any clue as to where to start looking.

Thank you for continuing to advance this project!

steveway commented 3 months ago

Hi, you can remove webrtcvad from the requirements.txt file. I was experimenting with it but it's not used currently. I'm not sure about the ffmpeg problem. At the moment it's difficult to find time since I have a one year old kid now. In my last tests I used Windows and python 3.11 directly from python.org without conda. I have some new AI stuff from my phonemation software which I want to bring here and some new packaging options. I'm on vacation this week and have no computer here, but I'll see if I can try in the next few weeks.