kturung / streamlit_podcast_generator

27 stars 14 forks source link

Podcast Generator

This application is a podcast generator that works %100 locally on your computer. It uses Phidata assistant client to generate dialogues for a podcast based on user inputs. It is built with Python and uses the Streamlit library for the web interface, llama3-8b-instruct model for AI dialog generation, and the TTS (Text-to-Speech) library for generating audio from the generated dialogues.

Podcast Generator

Features

Prerequisites

Before running the application, ensure that you meet the following prerequisites:

Installing ffmpeg

On Windows

  1. Download the latest version of ffmpeg from the official website.
  2. Extract the downloaded file.
  3. Add the bin folder from the extracted file to your system's PATH.

Or with chocolatey

choco install ffmpeg

On macOS

You can install ffmpeg using Homebrew:

brew  install  ffmpeg

On Linux

You can install ffmpeg using apt:

sudo apt update
sudo apt install ffmpeg

After installing ffmpeg, you can run the application as described in the "How to Run" section.

How to Run

  1. Clone the repository.
  2. Install the required Python libraries using pip:
pip install -r requirements.txt
  1. Run the Streamlit application:
streamlit run app.py
  1. Open the application in your web browser at http://localhost:8501.

Usage

  1. Select your host character and the guests you would like to have on the show.
  2. Enter your podcast topic.
  3. Set the number of dialogues you want in the podcast.
  4. Define the persona for each character.
  5. Click the "Submit" button to generate the podcast.
  6. The application will generate a transcript and an audio file of the podcast.