-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path__main__.py
28 lines (23 loc) · 998 Bytes
/
__main__.py
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
from bestdori_voice_extractor.analyzer.asset import AssetAnalyzer
from bestdori_voice_extractor.analyzer.voice import VoiceAnalyzer
from bestdori_voice_extractor.downloader.asset import AssetDownloader
from bestdori_voice_extractor.downloader.voice import VoiceDownloader
from bestdori_voice_extractor.merger import AssetMerger
if __name__ == "__main__":
# Step 1: Download assets
asset_downloader = AssetDownloader("assets")
asset_downloader.run()
# Step 2: Download voices
voice_downloader = VoiceDownloader("voices")
voice_downloader.run()
# Step 3: Analyze assets
asset_analyzer = AssetAnalyzer()
asset_analyzer.run("assets", "asset.json")
# Step 4: Analyze voices
voice_analyzer = VoiceAnalyzer()
voice_analyzer.run("voices", "voice.json")
# Step 5: Merge assets and voices
# Take MyGO!!!!! as an example
for i in range(36, 41):
asset_merger = AssetMerger(str(i), "asset.json", "voice.json")
asset_merger.merge()