Giter Site home page Giter Site logo

lol_extract_voice's Introduction

lol_extract_voice

批量提取联盟中音频文件

介绍

提取联盟中音频文件, 并且生成事件ID与音频ID对应哈希表. 详见lol-audio-events-hashtable

v2版本相对于之前的版本有比较大的更新:

  • 支持输出事件, 意思就是现在你可以知道那个语音是在什么情况下触发得了
  • 多进程提取, 提取速度从原来的15-20分钟到现在的5-6分钟. (测试环境i7-8750H, 默认配置满载提取) 这还是增加了上面功能后的事件. (实测在3950X下只需要2分钟, 未满载)

安装

git clone --recurse-submodules -b v2 https://github.com/Virace/lol_extract_voice

注意子模块CDTB的哈希表更新,

git submodule update

如果你clone的时候没有添加 --recurse-submodules 参数, 也可以在之后执行

git submodule init

因为部分代码使用了新版本特性, 比如: 海象表达式等. 所以Python版本最低为3.8

pip install -r requirements.txt

环境中有一个包是从GitHub安装的, 详情见: py-bnk-extract

使用

使用前查看index.py, main函数文档.

直接进入目录新建test.py

from index import main
main(r'C:\League of Legends',
     r"C:\Out",
     r'C:\vgmstream-win\test.exe',
     'zh_cn',
     'wav',
     5)

第三个参数为vgmstream工具, 可以在这里下载https://vgmstream.org/downloads, 用于转码. 最后一个参数为多进程数量, 如果需要满载就不填写就行. 总线程超过32的CPU请手动填写实际数量.

问题

  • 多余代码未整理
  • 注释过少
  • 除zh_cn外区域未测试

维护者

Virace

感谢

许可证

GPLv3

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.