Generate stories using AI. From text to story (pdf and video).
Example videos can be found here: https://www.youtube.com/@ai-story
A sample story can be found under _stories dir. The sample contains raw content (image, text and audio) alongside final_video.mp4
and final_story.pdf
.
Install requirements.txt
.
python3 main.py --help
Process a pre-generated story.
python3 main.py --pickle ./_stories/2023_01_06_17_38_47-Five_Little_Monkeys/story_content.pickle
openai_creds.json
with the below format and put it root dir of the project.{
"organization": "xxx-XXXXXXXX",
"api_key": "xx-XXXXXXXXXXXXXXXXXXXXXXXXX"
}
Replace "The Friendly Panda" with your favorite story title/prompt.
python3 main.py --prompt "The Friendly Panda"
AmazonPollyFullAccess
./credentials
create a new file called polly-creds.json
and add the below content.{
"access_key": "xxxxxxxx",
"secret_key": "xxxxxxxxxxxxxxxxxxxxxxxx"
}
Results can be found under _stories directory with a new dir prefixed with date and time of run.
Open AI has limitations/restrictions on what kind of content you can create. So, it may fail to generate text or images for specific words and sentences.