Storyteller turns a spoken topic into an audio story of about two minutes. Grammel describes it as a React client with a custom Fastify server, designed around responsiveness, quality, and consistency.
Storyteller: Building Multi-modal Apps with TS & ModelFusion
Speaker
Lars Grammel, PhD, presents Storyteller, a TypeScript app built with ModelFusion for generating short audio stories for preschool kids; no company or event venue is stated.
The server transcribes the recording with OpenAI Whisper, which takes about 1.5 seconds for a short topic, and sends updates to the client through server-sent events. GPT-3 Turbo Instruct creates an outline in about four seconds; after that, title and image generation run alongside story narration.
GPT-4 extracts representative keywords from the story to form an image prompt, which Stable Diffusion XL uses to generate an image. The server stores the image as a virtual file and sends its path to the client for display.
A full GPT-4 story generation can take about a minute and a half, so Storyteller streams and partially parses the story structure to identify passages ready for narration. For new speakers, GPT-3.5 generates a gender and voice description; the app retrieves a matching voice while avoiding duplicates, then synthesizes audio with ElevenLabs.
The client begins playback as soon as the first audio part is ready, while the server continues generating later parts. Grammel attributes responsiveness to progressive loading updates, parallel backend work, streaming, and choosing models with shorter processing times.
Takeaways
- Send progress events as outputs become ready so the interface can show work in progress.
- Run independent tasks, such as title and image generation, in parallel after producing a story outline.
- Stream and parse structured model output so completed sections can be processed before the full response arrives.
- Start playback when the first audio segment is ready, while later segments continue generating.
- For consistent images, derive prompts from story details; for distinct character voices, match descriptions and prevent voice reuse.
Mentioned in this talk
Search inside this talk
What was claimed 15
- built
“ModelFusion, an AI orchestration library that I've been developing.”
YouTube Verified2 sources· Talk, Web· archived
- metric
Storyteller: Stories are about two minutes long“It generates audio stories that are about two minutes long”
YouTube Unverified1 source· Talk
- feature
Storyteller: Generates short audio stories for preschool children from voice input“an app for generating short audio stories for preschool kids”
YouTube Unverified1 source· Talk
- uses
Storyteller uses TypeScript“Storyteller is implemented using TypeScript and ModelFusion.”
YouTube Unverified1 source· Talk
- uses
Storyteller uses Fastify“the server is a custom Fastify implementation”
YouTube Unverified1 source· Talk
- uses
Storyteller uses React“The client is written using React”
YouTube Unverified1 source· Talk
- uses
“The client-server communication works through a server-sent event stream.”
YouTube Unverified1 source· Talk
- metric
Whisper: Transcribes a short topic in 1.5 seconds
“for a short topic, 1.5 seconds”
YouTube Unverified1 source· Talk
- uses
Storyteller uses Whisper
“For transcription, I'm using OpenAI Whisper.”
YouTube Unverified1 source· Talk
- metricGPT-3.5 Turbo Instruct: Generates a story outline in about four seconds
“It can generate a story outline in about four seconds.”
YouTube Unverified1 source· Talk
- uses
“For this, I use GPT-3 Turbo Instruct”
YouTube Unverified1 source· Talk
- uses
“That image prompt is passed into Stability AI Stable Diffusion XL”
YouTube Unverified1 source· Talk
- uses
Storyteller uses GPT-4“We pass the whole story into a GPT-4 prompt”
YouTube Unverified1 source· Talk
- feature
Storyteller: Streams story structure and narrates completed passages so audio playback can start before processing finishes“determine if there is a new passage that we can narrate and synthesize speech for”
YouTube Unverified1 source· Talk
- uses
Storyteller uses ElevenLabs
“ElevenLabs are supported for the speech synthesis element.”
YouTube Unverified1 source· Talk













