Giter Site home page Giter Site logo

youtubeshadowingpractice's Introduction

Shadowing Practice Using Python

Make your own VoiceTube. Demo Video img
This is an applicaion using whisper.

GUI support
img

Installation

pip install -r requirements.txt

For cpu user:

  1. Install torch first: pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cpu

Usage

GUI

python gui.py

For Youtube link:

python main.py [--url YOUTUBE_URL] [--pause] [--force] [--model=base] [--words=5] [--speed=1.0]

For mp4 or mp3 files:

python mp4_to_mp3.py mp4filename.mp4  
python video2script.py mp4filename.mp4
python main.py [--pause] [--force] [--model=base] [--words=5] [--speed=1.0]

--url: Specify Youtube link. It is required for the first time use. If not set, play cached video.
--pause: Manually set pause duration. If not set, It will equal the original sentence duration.
--force: Re-processing video
--model: Choose Whisper model size: tiny | base | small | medium | large. Default base
--words: At least # words in a segment. Default 5.
--speed: Adjust speed to #-X. Default 1-X. If negative, represents for #-words per min.

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.