GPT-SoVITS icon indicating copy to clipboard operation
GPT-SoVITS copied to clipboard

Add restrictions on file extensions

Open XXXXRT666 opened this issue 1 year ago • 4 comments
trafficstars

errors won't occur due to .DS_Store files.

XXXXRT666 avatar May 04 '24 22:05 XXXXRT666

Why not define AUDIO_EXTENSION in a single config file such as tools/my_utils.py and use from xxx import AUDIO_EXTENSION for reusability? It will be easier when adding new extensions or doing some modifications. The PR might be of some use (

SapphireLab avatar May 05 '24 05:05 SapphireLab

Some of them have no try or try outside the loop, so the the code will stop running after raising the error

XXXXRT666 avatar May 06 '24 21:05 XXXXRT666

@XXXXRT666 1、image →_→ 2、这个音频文件格式列表全吗? 3、你要写成set而不是list,可以学习一下in list和in set的算法复杂度

RVC-Boss avatar May 19 '24 09:05 RVC-Boss

现在应该就涵盖了99%能见到的扩展名了,要是直接把ffmepg的支持D的搬过来也行,已经改成set了

XXXXRT666 avatar May 19 '24 14:05 XXXXRT666