This project uses ChatGPT to generate podcasts about books. We are using the chatgpt-wrapper library to interact with the ChatGPT API.
pip install -r requirements.txt
playwright install firefox
chatgpt install
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>
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
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.
This project is licensed under the MIT License. See LICENSE for more details.