Giter VIP home page Giter VIP logo

story-to-video's Introduction

Story-to-Video

Create a Movie "animation" vith audio and Subtitle from text: Story to Video Generator

This program generates a video from text using OpenAI's ChatGPT to create a sequence of images and gTTS (Google Text-to-Speech) to produce audio. The images and audio are then combined to create the final video.

  1. Installation
  • Ensure you have Python 3.6 or higher installed on your system.

  • Install the required libraries by running the following command in your terminal or command prompt:

    pip install openai requests gtts pydub scikit-image pillow numpy psutil

  • Install FFmpeg, which is used for video processing. Visit the official FFmpeg website for installation instructions for your specific operating system.

    https://ffmpeg.org/download.html

  1. Usage

Run the Python script and follow the prompts to input the text file by default story.txt containing the story you would like to convert to video. The program will generate images and audio based on your input and combine them into a video. The Image files generated by oppen.ai are downloaded to thworking directory while the intermediate files and the resulting video to ../output

  1. Enhancements and Customizations You can improve the program or customize it to suit your needs by:
  • Add subtitles with the text synchronized to audio
  • Using alternative image generation models, such as StyleGAN, BigGAN, or DALLE-2, to create more diverse or higher-quality images.
  • Incorporating different text-to-speech (TTS) libraries, such as Tacotron 2 or Mozilla's TTS, to generate audio with varied voices, accents, or intonations.
  • Adjusting the program parameters (e.g., frame rate, video duration, audio quality) to optimize the output video.
  1. Contributing Feel free to contribute to this project by suggesting improvements, reporting bugs, or implementing new features. You can submit your changes via pull requests or open issues on the project repository.

Enjoy your text-to-video conversion!

story-to-video's People

Contributors

geohaber avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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