Skip to main content
Analyze an image to write a story, then convert the story to audio narration.

Code

image_to_audio.py

Usage

1

Set up your virtual environment

2

Install dependencies

3

Export your OpenAI API key

4

Add a sample image

Save a sample.jpg file in the same directory as the script. The agent reads this file with Image(filepath=image_path).
5

Run Agent