Duplicated from vinthony/SadTalker
3 unmodified lines456789103 unmodified linesimport randomimport scipy.io as scioimport src.utils.audio as audioimport subprocess def crop_pad_audio(wav, audio_length): if len(wav) > audio_length: