Skip to content

pugtech-co/tts-video

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

notebooks/output/jolene.mp4

Installation

Requirements

  • Pipenv
  • brew install espeak
  • brew install ffmpeg
  • a bunch of mp4's in notebooks/videos/

Setup

  1. Clone this repository
  2. Run pipenv install
  3. Run pipenv shell
  4. Run python3 -m ipykernel install --user --name=tts-video
  5. Run one of the jupyter notebooks in your favorite notebook environment
  • If using VSCode, make sure to reload the kernels (cmd+shift+p -> Developer: Reload Window) and select the tts-video kernel

Warning, some of the AI generated code does not handle tmp files correctly, so you may need to manually delete them if you run into space issues.

Usage

This software works by taking text, generating audio using coqui TTS, matching up the audio with the text, and then painting the text on a video at the right timestamps. There are also a few options for automating the creation of the video and audio componenets of the video.

Generating audio from text

see src.tts

Painting words on a video based on the generated audio

see src.video_composition.combo.tts_component

Adding videos, background, and audio together

see notebooks.lyricsg

jolene.mp4

About

Transform text into a video with text and sound

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published