Git Product home page Git Product logo

novel_test's Introduction

做视频的时候配音和字幕生成太慢,又没找合适的配音工具,所以写了这个工具。
产物是mkv文件,其中音轨和字幕都可以拆出来,方便二次编辑。
效果参考视频。

或者可以在线体验一下。

1、下载安装

先下载这个镜像: 镜像主页

# 下载
docker push weisiwu/novel_test:latest

然后开始编辑本地需要转化的文件,比如叫做input.txt
准备就绪后,运行镜像,将input.txt挂载到novel_test/input.txt路径下。(直接用下面的命令,将INPUT_PATH替换为本地input.txt的绝对路径)

# 挂载input.txt
docker run -d -v INPUT_PATH:/novel_test/scripts --name novel_test novel_test

TODO 输出位置没指定 -----------TODO-----------------------------------------------

2、构建/更新镜像

# 进入容器
docker exec -it novel_test bash
# 从Dockerfile构建镜像
docker build --no-cache -t novel_test:latest .
# 保存运行中的容器为新镜像
docker commit 12345abcde novel_test:latest
docker login
# 推送镜像
docker tag novel_test:latest weisiwu/novel_test:0.0.1
docker push weisiwu/novel_test:0.0.1

2、配置使用

打开 project.yml,在里面按照自己实际情况,进行配置。字段含义如下

output:
  background_music: 'take me higher.mp3' # 背景音乐
  speed: 120 # 语速
  volume: 10 # 音量

notice

docker 限制容器对CPU的占比

将这个文件下载到指定位置,防止每次都下载 https://hf-mirror.com/coqui/XTTS-v2 model.pth vocab.json config.json hash.md5

novel_test's People

Contributors

weisiwu avatar

Stargazers

 avatar

Watchers

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