Giter VIP home page Giter VIP logo

ai-podcast-creator's Introduction

AI Podcast Creator

A Python script to generate an audio podcast episode using APIs from OpenAI (ChatGPT) and ElevenLabs. ChatGPT generates an informal commentary based on news headlines and ElevenLabs reads that out with a human-sounding voice.

Notes

Be aware that AI APIs are at an early stage and are likely to change over time.

The Python file uses the Japan Times RSS feed but others should work too, e.g. NPR, BBC News, etc.

Here's an example of the audio output (converted to video):

sample_audio_output_small.mp4

Requirements

Installation

  1. Download the files in this repository to a local directory.
  2. Make a proper copy of the example environment variables file:
$ cp .env.example .env
  1. Edit the new .env file to add your API keys, for example:
$ nano .env

Use this format in the .env file:

OPENAI_API_KEY=YOUR-PRIVATE-KEY
ELEVENLABS_API_KEY=YOUR-PRIVATE-KEY
  1. Install any requirements using pip and the requirements.txt file. You may need to use pip3 instead of pip.
$ pip install -r requirements.txt
  1. Run the script and wait for it to generate an MP3 file. You may need to use python3 instead of python.
$ python create_podcast.py
  1. Hopefully it worked! If not, check you have enough credits for OpenAI and/or ElevenLabs.

Reference

ai-podcast-creator's People

Contributors

tagawa avatar

Stargazers

Tije Vlam avatar Tyler Durden avatar  avatar  avatar

Watchers

 avatar  avatar

ai-podcast-creator's Issues

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.