β’ π¦ Twitter
β’ π¨οΈ Weiren Lan
Welcome to StoryStudio! π Here, we're reimagining the art of storytelling by blending human imagination with the power of cutting-edge AI. Dive into an innovative experimets where stories are not just read, but experienced.
π₯ Showcase (Full video on YouTube)
demo.mp4
Ever thought about turning a simple topic or idea into a mesmerizing story, complete with visuals, voice narration, and music? That's exactly what StoryStudio promises!
- Choose your Story's Essence: Start with inputting a topic or a short description. This seed will be the heart of your personalized story.
- Let the Magic Begin:
- GPT-4 gets to work and spins a tale based on your inputs.
- The crafted story is then deconstructed into a dynamic storyboard - breaking down backgrounds, themes, characters, and even scene-specific music.
- The story is also seamlessly split into a voice-over script.
- Making it Real:
- The script is transformed into engaging narration via Azure Cognitive API's Text-To-Speech (TTS).
- Visuals for the storyboard frames come alive with the prowess of Stability API.
- Scene music isn't just generic; it's crafted using the Replicate API to resonate with the story's mood.
- Integration Symphony:
- Synthesis of TTS-generated sound, word by word.
- A harmonious blend of generated images.
- The magic of music.
- Everything is connected to give you a story experience like never before!
To set up storystudio on your machine, simply run:
$ poetry install
-
OpenAI (LLM):
- Key Name:
OPENAI_API_KEY
- Purpose: For LLM usage.
- Acquisition: Follow the OpenAI documentation to obtain your OpenAI API key.
- Key Name:
-
Azure Speech Service (TTS):
- Key Names:
AZURE_SPEECH_KEY
andAZURE_SPEECH_REGION
- Purpose: For TTS functionality.
- Acquisition: Refer to the Azure documentation to activate the Azure speech service and retrieve the necessary keys.
- Key Names:
-
Replicate (MusicGen):
- Key Name:
REPLICATE_API_TOKEN
- Purpose: Call the MusicGen API at Replicate to generate background music.
- Acquisition: Follow the instructions provided in the Replicate documentation to obtain your API token.
- Key Name:
-
Stability (SDXL):
- Key Name:
STABILITY_KEY
- Purpose: Interface with Stability SDXL for image generation.
- Acquisition: Visit the Stability documentation to get your key.
- Key Name:
-
Copy
.env.example
to.env
and fill the key values
$poetry run python storystudio/generate.py
from storystudio.generate import Studio
your_studio = Studio()
seed_story="HarryPotter is transferred to Naruto's world"
export_dir="./mystory" #Change to your desired path
your_studio.run(seed_story=seed_story, export_dir=export_dir)
- Main structures refer to MetaGPT
- https://github.com/RayVentura/ShortGPT