Code Monkey home page Code Monkey logo

genshin-audio-extractor's Introduction

Genshin Audio Extractor

Linux-only setup

  1. Install ffmpeg-compat-57. For example, on Arch Linux, assuming AUR helper yay
yay -S ffmpeg-compat-57
  1. Install the rest of the dependenies by running setup.sh
./setup.sh

Usage

  1. 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.

  1. Install dependencies
npm install
  1. Run the program
node decode.js --input <your specified input>

The files in <your specified input> will be converted to .wav files inside ./output.

Options

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

Todo:

  • Clean up dependencies

  • Cross-Platform

    • Windows
    • Linux
    • macOS
  • Multi-export support (FLAC, MP3, etc)

  • Automatically remove processed files once complete

  • Multithreading

  • More?

genshin-audio-extractor's People

Contributors

alexpado avatar dvingerh avatar meguminsama avatar sbence avatar venipa avatar yoroshikun avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.