Giter Site home page Giter Site logo

text-to-instapy's Introduction

Text-to-InstaPy

This is my first Python project inspired by This guy https://github.com/iJohnMaged/Text-To-Video-Py

I tried to mix image video and voice to generate the video

FAKE YOU API: https://docs.fakeyou.com/ get your credentials from here to start using this scipt

PIXABAY API : https://pixabay.com/api/docs/ get your API key here

BING IMAGE DOWNLOAD: https://pypi.org/project/bing-image-downloader/

CONFIG

Project includes ENV FILE

"fakeyou_user": "--YOUR FAKEYOU EMAIL--",

"fakeyou_password": "--YOUR FAKEYOU PASSWORD--",

 "PIXABAY_API": "--YOUR PIXABAY API KEY--",
 
"fakeyou_voiceactor":"TM:9msyk3s92yrv" -- Kurzgesagt voice model  https://fakeyou.com/tts/TM:9msyk3s92yrv

Create Scene

JSON included in the project

{
"scene 1":
{
    "image":"expansion of universe",
    "tts":"In the early 1990s, one thing was fairly certain about the expansion of the universe."
},

"scene 2":
{
    "video":"dark matter",
    "tts":"It might have enough energy density to stop its expansion and recollapse,"
},

"scene 3":
{
    "image":"gravity",
    "tts":"but gravity was certain to slow the expansion as time went on."
},
"scene 4":
{
    "video":"time",
    "tts":"Granted, the slowing had not been observed, but, theoretically,"
}

}

How to run

Create a virtual environment and run

pip3 install -r requirement.txt

Then you can create a script in script.json and run

py text_to_video.py

Imprtant Note

  1. Make scene smaller as API gets consumed and gives error
  2. Text to Speech is max for 11 sec only for that create another scene

Report Bugs

text-to-instapy's People

Contributors

abhishekjinxed avatar

Stargazers

 avatar

Watchers

 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.