Code Monkey home page Code Monkey logo

aipresenter's Introduction

AI Presenter

aipresenter makes it easy to create stories using ChatGPT, for dialogue and scenes, and ElevenLabs, for voice generation. Currently, aipresenter outputs an audio file, but in future releases we would like to output fully integrated video slideshow stories.

Usage

Setup

  1. Open your terminal or command prompt
  2. Create a new directory to house the aipresenter project.
mkdir example_project
  1. Move into that directory
cd example_project
  1. Clone the project's main branch
git clone https://github.com/aipresenter/aipresenter.git
  1. Move into the aipresenter directory
cd aipresenter
  1. Create your virtual environment
python3 -m venv venv; source venv/bin/activate
  1. Update your virtual environment
pip install -r requirements.txt
  1. Create environment variables for the api keys.
export CHATGPT_APIKEY=your_chatgpt_api_key
export ELEVENLABS_APIKEY=your_elevenlabs_api_key

Command options

Use --help to bring up an option menu:

python3 main.py --help

Through this interface, aipresenter can be used for:

  • script generation from a plot
  • dialogue generation from a script
  • audio generation from dialogue

Examples

script generation

In this example, the plot is used by chatgpt to create a script and return it as myscript.yml

python3 main.py \
--plot="a plot with 3 scenes about a space war around Europa" \
--script-out=myscript.yml

Once completed the script is written to the file myscript.yml, and is accessable in the aipresenter folder.

dialogue and audio generation

In this example, the script is used by chatgpt to generate dialogue, which includes a narrator due to the parameter --narrator, then used by elevenlabs to generate an mp3 file of the dialogue.

python3 main.py \
  --script=myscript.yml \
  --textai=chatgpt \
  --voiceai=elevenlabs \
  --narrator

Once completed the mp3 file becomes avaliable in the aipresenter folder for listening.

Audio Examples

War over Europa

Europa

Ants vs Wasps

Ants vs Wasps

aipresenter's People

Contributors

ephraimacquah avatar immanuelpabon avatar lpabon avatar platput 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.