What you will take away from this lesson
The presentation above is the lesson. Each slide shows one part of how a narrated presentation is made on Plexara, using the real files and calls behind it. This page holds what each slide says and the calls behind it, to read at your own pace.
GPULab is an optional connection Deasil adds to a Plexara deployment. It makes the media; Plexara supplies the data, the files, the site, and the automations that can make it all again.
Learning Objectives
- 01Name the four kinds of file a narrated presentation is made of.
- 02Say which call makes each one, and which calls pass their results along without downloading them.
- 03Say where the files are kept and how the site serves them.
What a presentation is made of
Slide 1 narration
A narrated presentation is four kinds of file that a page plays together: the narration mixed over its music, the images, the slide data, and a timing file that marks when every word is spoken. On Plexara, each one comes from a call an agent makes. A query reads the data, GPULab makes the media, and the files land in your resource library, where the site serves them.
A page that plays a presentation loads four kinds of file. The narration and its music arrive as one mixed audio file. The images and the slide data arrive as files of their own. The timing file says when every word is spoken, which is what starts each animation and each caption on its word.
The four files behind the GPULab presentation
Narration and music
deck-bfa7a30662.mp3
mp3 · 2.96 MB · 3:05
createSpeechreads each slide;editAudiojoins the readings and shortens long pauses;masterAudiosets EQ, compression and loudness;renderMusicplays a score written as notes;mixAudiolays the voice over the music and lowers the music while the voice speaks.Images
s01-7121-step8-1536.webp
webp · 59.9 KB · also 768 px and AVIF
createImagerenders the picture;createImageVariantsmakes every width and format the page asks for, from the first job's result, without the image leaving GPULab.Slide data
s04-forecast-820898cc49.json
json · 1.8 KB
- A query reads ACME's weekly unit sales from the warehouse;
createForecastreturns the forecast and its range; the agent writes both as the JSON the slide draws from. Timing
deck-bfa7a30662.json
json · 12.3 KB · 468 timed words
createTranscriptionreturns every word of the final mix with its start and end time. Each word is matched to the script, and the page starts each animation on its word.
These are the files the presentation at the top of the GPULab page plays.
Each file is written to the resource library, in a folder the site mounts at /images/. A file there is served the moment it is written, with no new release of the site, so a change to the narration reaches the page as soon as the new audio and timing are written.
The calls behind this slide
The audio and timing for the slide above were made with seven calls to GPULab operations and two writes to the resource library. The numbers below are this slide's own.
The calls that made this slide's audio and timing
What the agent calls. This is the exchange the agent has with Plexara on your behalf, shown for the technical reader. You ask in plain language; you never type any of it.
→ api_invoke_endpoint gpulab · createSpeech × 3
{ "input": "<one part of the slide, at most 200 characters>",
"seed": 4, "exaggeration": 0.5, "cfg_weight": 0.5 }
← 11.86 s, 4.10 s, 7.46 s of speech
→ api_invoke_endpoint gpulab · editAudio
{ "clips": [ {"from_job": "<part 1>"}, {"from_job": "<part 2>"}, {"from_job": "<part 3>"} ],
"steps": [ {"op": "shorten_silences", "longer_than": 0.45, "keep": 0.35} ] }
→ api_invoke_endpoint gpulab · masterAudio
{ "audio": {"from_job": "<edit>"}, "eq": [ … four bands … ],
"compressor": { "ratio": 2.5, "threshold_db": -24 }, "loudness_lufs": -15 }
→ api_invoke_endpoint gpulab · mixAudio
{ "voice": {"from_job": "<master>"}, "bed": {"from_job": "<music>"},
"bed_level_db": -9, "duck_db": 3, "loudness_lufs": -16 }
← 29.03 s, mp3
→ api_invoke_endpoint gpulab · createTranscription
{ "file": {"from_job": "<mix>"}, "model": "whisper-large-v3-turbo",
"timestamp_granularities": ["word", "segment"] }
← 68 of 68 script words timed
→ manage_resource create × 2
deck-2bc9310d4b.mp3 deck-2bc9310d4b.json
→ served at /images/learning/multimedia/1101/createSpeech, so GPULab reads in its default voice. Each later step names the previous job with from_job, so the audio stays on GPULab until the last call writes the two files.