Giter Site home page Giter Site logo

myheygen's Introduction

MyHeyGen

一个平民版视频翻译工具,音频翻译,翻译校正,视频唇纹合成全流程解决方案

参考项目(感谢他们的优秀作品)

HeyGenCloneTTSVideo-retalking

实现效果

视频教程

【MyHeyGen来了!!!】

环境准备

  1. huggingface申请token,放在config.json的HF_TOKEN参数下
  2. 百度翻译申请APPKey用于翻译字幕放在config.json的TS_APPID和TS_APPKEY参数下
  3. 下载weights放在MyHeyGen目录下,下载checkpoints放在video-retalking目录下,从weights复制GFPGANv1.4.pth到checkpoints
  4. 仅在Linux python 3.10 Tesla T4(16GB) 环境下测试通过

安装

git clone https://github.com/AIFSH/MyHeyGen.git
cd MyHeyGen
bash install.sh

测试

python translate.py /root/MyHeyGen/test/src.mp4 'zh-cn' -o /root/MyHeyGen/test/out_zh.mp4

自己使用

python translate.py 原视频文件路径 想要翻译成的语言代码 -o 翻译好的视频路径
## 语言代码可以选择这些中之一:['en', 'es', 'fr', 'de', 'it', 'pt', 'pl', 'tr', 'ru', 'nl', 'cs', 'ar', 'zh-cn', 'ja']
##分别对应[英语、西班牙语、法语、德语、意大利语、葡萄牙语、波兰语、土耳其语、俄语、荷兰语、捷克语、阿拉伯语、中文(简体)、日语]14种语言

myheygen's People

Contributors

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