- Install
ffmpeg-compat-57
. For example, on Arch Linux, assuming AUR helperyay
yay -S ffmpeg-compat-57
- Install the rest of the dependenies by running
setup.sh
./setup.sh
- Extract your audio files from the Genshin Impact datafiles.
GenshinImpact_Data/StreamingAssets/Audio/GeneratedSoundBanks/Windows
Move the .pck files you want to extract into a folder. The files must be directly inside the folder - no subdirectories.
- Install dependencies
npm install
- Run the program
node decode.js --input <your specified input>
The files in <your specified input>
will be converted to .wav files inside ./output
.
You can pass an optional argument to export the audio in different formats.
Valid arguments are flac
, mp3
, ogg
and all
node decode.js --input flac --audio flac
Encoding details
FLAC: Compression level 12, 44,1 kHz, 16-bit
OGG Vorbis: ~160 kbit/s VBR, 44,1 kHz
MP3: ~175 kbit/s VBR, 44,1 kHz
-
Clean up dependencies
-
Cross-Platform
- Windows
- Linux
- macOS
-
Multi-export support (FLAC, MP3, etc)
-
Automatically remove processed files once complete
-
Multithreading
-
More?