-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtoolbox.py
More file actions
36 lines (30 loc) · 870 Bytes
/
toolbox.py
File metadata and controls
36 lines (30 loc) · 870 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
from runtime import COLOR as color
from tools import check_ffmpeg
from tools import sim
from tools import wav2flac
MENU = """
------菜单------
1. 检查FFMpeg安装状态
2. 音乐去重(哈希)
3. 音乐AI去重(暂不可用)
4. 音频自动转换为FLAC
------END------
"""
def main():
print(color.cyan, MENU, color.end)
print("请输入指令对应的编号")
command = input(">>")
match command:
case "1":
check_ffmpeg.main()
case "2":
sim.main()
case "3":
print(f"{color.yellow}鉴于依赖库Librosa还没支持Python3.12,")
print(f"因此我先摸鱼一会儿,此功能暂不可用{color.end}")
case "4":
wav2flac.main()
case _:
print(f"{color.red}无效的命令{color.end}")
if __name__ == "__main__":
main()