- Chinese/中文
- Extract the voice and corresponding text
-
Install .Net 6.0 Runtime
-
Download binary file in Releases
-
Double-click
run.bat
- Required Environment: Python 3.8+、.Net 6.0 Runtime
- Install python package:
pip install -r requirements.txt
pydantic~=1.8.2
colorama~=0.4.4
pythonnet~=3.0.1
UnityPy~=1.9.21
requests~=2.28.1
tqdm
PyQt5~=5.15.4
- Run binary file from Releases :
run.bat
- Run source code:
python gui_main.py
- Empty any of the
Wave Format
sections, the output will follow the original format.
- Extract result example:
xxx/xxx.wav|0|こんにちは
- Double-click the target character to add to the list, you can modify the
SaveID
.
- Right-click on the target character and add it to the target position. Parts greater than
Singing Pos Count
will be ignored.
- Edit and run
main.py
:python main.py
import voiceex
# set save folder, download when missing awb/acb files, get voice from all character stories (takes a long time), use cache (Save in "umacache" folder. You need to delete the cache file yourself after the game update.)
ex = voiceex.VoiceEx(save_path="save", download_missing_voice_files=True, get_voice_from_all_stories=False, use_cache=True)
# set wave sampling rate, bits, channels (optional)
ex.set_wav_format(22050, 16, 1)
# set download proxy (optional)
ex.set_proxies("http://127.0.0.1:10087")
- Single Character Mode
# Single Character Mode
# start extract character No.1024 (MayanoTopgun)
ex.extract_all_char_text_single(1024)
- Multi Character Mode
# Multi Character Mode
# Set character output id (Union[int, str])
ex.set_multi_char_out_ids([
(1024, "0"), (1046, 1)
])
# start extract character No.1024 (MayanoTopgun) and No.1046 (SmartFalcon)
ex.extract_all_char_text_multi([1024, 1046])
- The voice-text file is in
{your save_path}/output.txt
.
- Voice files
- Single character mode
- Multi character mode