Explainer videos and product demos made by your AI agent. Free and open source: a local voice (Kokoro), word timing (Whisper) and a canvas renderer turn a script into a narrated MP4.
JavaScript ai-agentsanimationcanvasclaude-codecodexexplainer-videoffmpegjavascriptkokoroproduct-demotext-to-speechvideo-generationwhisper
Report errors from say, preview and doctor without a stack trace
Vincent Schmalbach76536907b95f
diff --git a/src/cli.js b/src/cli.jsindex 03695e3..b67a805 100644--- a/src/cli.js+++ b/src/cli.js@@ -101,7 +101,7 @@ export async function main(argv) {print(rows.map((r) => `${r.scene.padEnd(18)} ${r.voice.toFixed(1).padStart(5)}s ${Math.round(r.confirmed * 100)}% confirmed${r.unconfirmed.length ? ' unconfirmed: ' + r.unconfirmed.slice(0, 6).join(', ') : ''}`).join('\n') + `\ntotal ${timeline.duration.toFixed(1)}s`, { scenes: rows, duration: timeline.duration });return 0;}- case 'preview': return preview(pos[0], flags, log);+ case 'preview': return await preview(pos[0], flags, log);case 'still': {const isProject = pos[0] && fs.existsSync(path.join(pos[0], 'video.json'));const project = loadProject(isProject ? pos.shift() : undefined);@@ -169,7 +169,7 @@ export async function main(argv) {print(Object.entries(VOICES).map(([k, v]) => `${k.padEnd(12)} ${v}`).join('\n'), { voices: VOICES });return 0;}- case 'say': return say(pos.join(' '), flags, log, print);+ case 'say': return await say(pos.join(' '), flags, log, print);case 'themes': {const desc = {paper: 'hand-drawn marker on warm paper; brush transitions; warm music',@@ -194,7 +194,7 @@ export async function main(argv) {return 0;}case 'icons': return icons(pos, print);- case 'doctor': return doctor(flags, log, print);+ case 'doctor': return await doctor(flags, log, print);default:process.stderr.write(`unknown command "${cmd}"\n\n${HELP}\n`);return 2;