GithubHelp home page GithubHelp logo

podcast-generator's Introduction

Podcast Generation Buddy

This project is an automated podcast generation buddy that streamlines the process of creating, editing, and publishing podcast episodes. It includes features for generating scripts, converting them to speech, and automating the audio editing process.

Features

  • Script generation based on topic, number of speakers, and duration
  • Text-to-speech conversion using the say command on macOS
  • Audio editing and stitching using SoX
  • Simple content management system (CMS) for managing podcasts and episodes
  • RESTful API for generating and regenerating podcast episodes
  • Flask web server for serving static content and handling API requests

Prerequisites

  • macOS operating system
  • Python 3.x
  • OpenAI API key (for script generation)

Installation

  1. Clone the repository: git clone https://github.com/goggledefogger/podcast-generator.git Copy code
  2. Navigate to the project directory: cd podcast-generator Copy code
  3. Install the required Python dependencies: pip install -r requirements.txt Copy code
  4. Install SoX for audio editing: brew install sox Copy code
  5. Set up your OpenAI API key:
  • Create a file named .env in the project root directory.
  • Add the following line to the .env file:
    OPENAI_API_KEY=your_api_key_here
    
  • Replace your_api_key_here with your actual OpenAI API key.

Usage

  1. Start the Flask web server: python app.py Copy code

  2. Open a web browser and navigate to http://localhost:5000.

  3. Use the provided interface to create and manage podcasts and episodes.

  4. To create a new episode:

  • Click on the "Create Episode" button or link.
  • Fill in the episode details (topic, number of speakers, duration).
  • Click the "Create Episode" button to generate the episode.
  1. The generated episode will be saved in the episodes.json file, and the audio will be saved in the audio_output directory.

Project Structure

  • app.py: Flask web server for serving static content and handling API requests.
  • script_generation.py: Module for generating scripts using the OpenAI API.
  • audio_editing.py: Module for converting scripts to speech and stitching audio files.
  • public/: Directory for storing static content (HTML, CSS, JavaScript).
  • index.html: Frontend HTML file for the CMS.
  • script.js: Frontend JavaScript file for interacting with the backend API.
  • db/podcasts.json: JSON file for storing podcast data.
  • db/episodes.json: JSON file for storing episode data.
  • audio_output/: Directory for storing generated audio files.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please create an issue or submit a pull request.

License

This project is licensed under the MIT License.

podcast-generator's People

Contributors

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