Skip to content

Commit c62bc5d

Browse files
Add speedrun Brandschutzordnung
1 parent 6e2ddca commit c62bc5d

File tree

2 files changed

+110
-0
lines changed

2 files changed

+110
-0
lines changed
224 KB
Loading
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
---
2+
title: "From PDF to LiaScript Course — Speedrun with AI"
3+
slug: "from-pdf-to-liascript-course-speedrun-with-ai"
4+
date: 2025-10-10
5+
draft: false
6+
authors:
7+
- André Dietrich
8+
image: "/images/post/brandschutzordnung.jpg"
9+
tags:
10+
- AI
11+
- OER
12+
---
13+
14+
This two-part speedrun shows how you can transform static documents into interactive, narrated LiaScript courses quickly using LLMs, image AI, browser TTS and HeyGen presenter videos.
15+
16+
The project is hosted on GitHub: https://github.com/Ifi-DiAgnostiK-Project/Haus-und-Brandschutzordnung-Pirna
17+
18+
## Part 1 — PDF to LiaScript: CoPilot, ChatGPT and browser TTS
19+
20+
In this speedrun we transform a simple PDF (the house & fire-safety rules) into an interactive LiaScript course in minutes. The workflow shown combines automated text extraction, AI-generated imagery in a consistent style, and browser-based text-to-speech for narration.
21+
22+
{{< youtube RwlrB1l5oi8 >}}
23+
24+
Highlights
25+
26+
- PDF → LiaScript in minutes using simple scripts and the LiveEditor
27+
- AI-generated images (ChatGPT prompts) to illustrate concepts in a single visual style
28+
- Browser-based Text-to-Speech (TTS) used for quick narration and accessibility
29+
30+
What we do and why it works
31+
32+
1. Extract PDF text and structure (headings, paragraphs, lists).
33+
2. Use an LLM ChatGPT to generate LiaScript fragments and consistent image prompts.
34+
3. Generate images with an image-AI service using the same prompt template so visuals remain coherent across the course.
35+
4. Add images and the generated LiaScript source to the LiveEditor and publish the course (GitHub repository or direct upload).
36+
5. Use browser TTS for immediate voice-over during previews (no audio files required) and attach audio files later if you need offline playback or higher-quality voices.
37+
38+
Quick practical notes
39+
40+
- Image style consistency: keep a short prompt template (subject, scene, lighting, color palette). Reuse it for all prompts so images look like a set.
41+
- LiveEditor: include images as normal Markdown image links (or LiaScript image notation). The editor will render them in-place.
42+
- GitHub upload: commit the generated images and the LiaScript Markdown to a repo and point the LiaScript at the raw GitHub URL for easy sharing.
43+
44+
https://liascript.github.io/course/?https://raw.githubusercontent.com/Ifi-DiAgnostiK-Project/Haus-und-Brandschutzordnung-Pirna/3acfd7b8a4acbf87ead0ef26bb437d326c5f879b/README.md
45+
46+
#### LiaScript animation steps and TTS comments
47+
48+
LiaScript supports animation steps inside Markdown blocks using the notation `{{start-stop}}`. These are step indices that the user can click through. The `stop` value is optional — if omitted the step remains active until the next slide. For example:
49+
50+
```markdown
51+
{{0-2}}
52+
First block content (step 0), will disappear at step 2
53+
54+
{{2}}
55+
Second block content (step 2)
56+
```
57+
58+
Browser-based TTS comments use a small comment marker with a step index. Use `--{{step}}--` followed by the text that should be spoken when that step is activated. Example:
59+
60+
```markdown
61+
--{{0}}--
62+
Welcome to the interactive course. This text will be read by the browser TTS when the user advances to step 0.
63+
```
64+
65+
Combining animation steps and TTS makes it easy to create click-driven, narrated sequences without uploading audio files — great for quick drafts and accessibility checks.
66+
67+
<iframe loading="lazy" class="liveeditor" src="https://liascript.github.io/LiveEditor/?/show/file/https://raw.githubusercontent.com/Ifi-DiAgnostiK-Project/Haus-und-Brandschutzordnung-Pirna/3acfd7b8a4acbf87ead0ef26bb437d326c5f879b/README.md"></iframe>
68+
69+
70+
## Part 2 — HeyGen for virtual presenter videos and LiaScript comments
71+
72+
Part 2 shows how we add a virtual presenter created with HeyGen and link two generated videos to LiaScript comment blocks. The trick: you can encode start and end times in the video URL so a comment triggers only a segment of the presenter video.
73+
74+
{{< youtube a6yfTFOuqIk >}}
75+
76+
Why HeyGen: https://heygen.com
77+
78+
- Professional-looking presenter synchronized with your script
79+
- Easy to create short, localized segments for important course sections
80+
81+
How the integration works (high level)
82+
83+
1. Create two HeyGen videos: an introduction and a conclusion (or any two segments you like).
84+
2. Load the videos into the LiveEditor or VS Code and use the relative URLs. If you want to split on video then append start/end parameters to the URL.
85+
3. In LiaScript, if the first element of a comment is a `!?[video](url)` or an `?[audio](url)` element, then instead the TTS, LiaScript will play the multimedia content during this animation step. Videos are shown in an overlay when the comment is opened.
86+
87+
Encoding start and end times in URLs (example)
88+
89+
- Attach timestamps: `!?[](video.mp#t=0,5)` — starts at 0s, ends at 5s (some players only honor start).
90+
- Omit end time: `!?[](video.mp#t=30)` — starts at 30s, plays until the end of the video.
91+
92+
LiaScript comment example linking a video segment
93+
94+
```markdown
95+
--{{0}}--
96+
This short comment shows the presenter intro (30s–90s).
97+
!?[video](video.mp4#t=30,90)
98+
99+
--{{1}}--
100+
This closing comment shows the last 20 seconds, starting at 200 seconds.
101+
!?[video](video.mp4#t=200)
102+
```
103+
104+
<iframe loading="lazy" class="liveeditor" src="https://liascript.github.io/LiveEditor/?/show/file/https://raw.githubusercontent.com/Ifi-DiAgnostiK-Project/Haus-und-Brandschutzordnung-Pirna/refs/heads/main/README.md"></iframe>
105+
106+
---
107+
108+
#### See the final LiaScript course:
109+
110+
https://liascript.github.io/course/?https://raw.githubusercontent.com/Ifi-DiAgnostiK-Project/Haus-und-Brandschutzordnung-Pirna/3acfd7b8a4acbf87ead0ef26bb437d326c5f879b/README.md

0 commit comments

Comments
 (0)