You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project uses ChatGPT to generate podcasts about books. We are using the chatgpt-wrapper library to interact with the ChatGPT API.
Installation
Clone this repository.
Install the required dependencies:
pip install -r requirements.txt
Before starting the program, you will need to install a browser in playwright (if you haven't already). The program will use firefox by default.
playwright install firefox
With that done, you should start up the program in install mode, which will open up a browser window.
chatgpt install
Usage
Enter your Replicate API token into bookcast/config.toml.
Run the generate_podcast.py script:
python bookast/generate_podcast.py --book-name <book-name> --topics-number <topics-number>
Example
To generate a podcast about the book "The Alchemist" by Paulo Coelho, run the following command:
python bookast/podcast/generate_podcast.py --book-name "The Alchemist" --topics-number 2
Output
The script will generate an audio file podcast.mp3 in outputs folder under data folder. This file will contain a podcast about the specified book, generated by ChatGPT.
License
This project is licensed under the MIT License. See LICENSE for more details.