Tourwright

v2.7.1
io.github.CXmiloxx/tourwright Checked 10 hours ago Published 7 days ago

Turn a script into a narrated product tour video: real browser, captions, voice, MP4.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

tourwright_guide How to write a Tourwright script

The script format (browser walkthroughs and narrated slides), every action, voices and examples. Read it before writing a script.

tourwright_voices List voices

Text-to-speech voices available on the server and which engines work. Use a voice whose language matches the script.

tourwright_music List background music

Background music the scripts can name: the tracks on the server (name, mood, title, license), the moods and the built-in loops. In a script, music: <track name> or a mood (upbeat, corporate, calm, acoustic, tech, cinematic). To use a track of your own, send the audio file in `assets` of tourwright_render and write its asset name in music.

tourwright_validate Validate a script

Check the structure of a script (fields, actions, variables) without opening any website: fast, offline. Returns { ok } or the list of errors to fix. To know whether its targets still exist on the live site, use tourwright_check.

ParameterTypeDescription
script *The script: an object, or YAML/JSON text. Read tourwright_guide first for the format.
varsobjectValues for the script variables ({{name}}): the same script makes a different video per set of values

tourwright_render Render a video or a guide

Queue a script for rendering: a video, and/or a step-by-step guide as HTML, PDF or Word (options.export). With wait=true (default) it waits until it is ready and returns its links (and local paths), duration, chapters and captions; otherwise it returns the job id to poll with tourwright_job.

ParameterTypeDescription
script *The script: an object, or YAML/JSON text. Read tourwright_guide first for the format.
assetsobjectFiles the script refers to by name (images, your own background music, uploads), base64-encoded: { "theme.mp3": "<base64>" } and music: theme.mp3
optionsobjectRender settings that override the script
varsobjectValues for the script variables ({{name}}): the same script makes a different video per set of values
waitbooleanWait for the video (default true); false returns the job id at once, to poll with tourwright_job
waitSecondsintegerHow long to wait for the video before returning the job as it is (default 900)

tourwright_job Job status

Status, progress and (when done) the result of a render job.

ParameterTypeDescription
id *stringThe job id returned by tourwright_render with wait=false

tourwright_jobs List jobs

The render jobs on this server, newest first: id, status, progress and, for finished ones, the links to their videos. Use it to find a video rendered earlier or a job id to delete.

ParameterTypeDescription
limitintegerHow many jobs at most (default 20)
statusstringOnly jobs with this status

tourwright_delete_job Delete a job

Delete a finished (done or failed) job and its files: the video, subtitles, poster and manifest. A job that is queued or rendering cannot be deleted.

ParameterTypeDescription
id *stringThe job id, from tourwright_render or tourwright_jobs

tourwright_check Check a script and propose fixes

Run a script fast, without voice or video, against the real site (validate only checks its structure). Returns every step that failed (the target it looked for, the page, the targets that page offers) and, when it can tell, the new target for it. For a YAML script given as text it also returns `fixed`: the same text with those targets replaced (comments kept). Use it after the site changed, then validate and render.

ParameterTypeDescription
script *The script: an object, or YAML/JSON text. Read tourwright_guide first for the format.
varsobjectValues for the script variables ({{name}}): the same script makes a different video per set of values