Add Wav2Lip mel-spectrogram fallback to ensure lip-sync integration#8
Add Wav2Lip mel-spectrogram fallback to ensure lip-sync integration#8
Conversation
Co-authored-by: Dynamo2k <182001016+Dynamo2k@users.noreply.github.com>
@copilot ┌──(venv)─(dynamo💀Uchiha)-[/mnt/…/Cyber Security/Project/PAINAS/backend]
|
The system must avoid dummy code and ensure backend modules function even when optional Wav2Lip assets aren’t present.
audio.melspectrogramand falls back to an internal mel-spectrogram implementation mirroring the setup script parameters (80 mels, 16 kHz, FFT 800, hop 200, win 800). This keeps lip-sync functional whenaudio.pyisn’t on the path.Example:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.