@slidevideo/cli 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +42 -0
- package/IMPRESSUM.md +18 -4
- package/LICENSE-TERMS.md +46 -13
- package/README.md +5 -3
- package/addons/slidevideo/global-top.vue +1 -1
- package/addons/slidevideo/playback-entries.ts +1 -1
- package/addons/slidevideo/preview.ts +2 -2
- package/dist/adapters/browser-runtime.d.ts +3 -0
- package/dist/adapters/elevenlabs.d.ts +1 -0
- package/dist/adapters/elevenlabs.js +8 -4
- package/dist/adapters/powerpoint.d.ts +1 -1
- package/dist/adapters/powerpoint.js +10 -11
- package/dist/adapters/slidev-inspection.js +2 -4
- package/dist/adapters/slidev-server.js +136 -15
- package/dist/adapters/slidev.d.ts +9 -0
- package/dist/adapters/slidev.js +347 -62
- package/dist/annotations.d.ts +1 -1
- package/dist/annotations.js +3 -3
- package/dist/assembly.d.ts +44 -38
- package/dist/assembly.js +60 -21
- package/dist/calibration.js +5 -4
- package/dist/cli.js +88 -31
- package/dist/compositor.d.ts +30 -3
- package/dist/compositor.js +196 -30
- package/dist/contracts.d.ts +6 -6
- package/dist/executables.d.ts +2 -0
- package/dist/executables.js +27 -8
- package/dist/media.d.ts +7 -1
- package/dist/media.js +23 -4
- package/dist/pipeline.d.ts +1 -1
- package/dist/pipeline.js +107 -42
- package/dist/preview/server.js +4 -4
- package/dist/run.d.ts +1 -1
- package/dist/run.js +8 -3
- package/dist/setup-install.d.ts +1 -0
- package/dist/setup-install.js +8 -1
- package/dist/setup.d.ts +26 -8
- package/dist/setup.js +168 -76
- package/dist/speech.js +10 -6
- package/dist/storyboard.js +3 -6
- package/dist/timing.js +2 -2
- package/dist/update-check-worker.d.ts +1 -0
- package/dist/update-check-worker.js +28 -0
- package/dist/update-check.d.ts +4 -0
- package/dist/update-check.js +79 -0
- package/package.json +7 -3
- package/schemas/schedule.v1.json +389 -1
- package/schemas/storyboard.v1.json +342 -1
- package/skills/slidevideo/SKILL.md +2 -2
- package/skills/slidevideo/references/production.md +7 -6
- package/skills/slidevideo/references/storyboard.md +9 -8
- package/schemas/schedule.v2.json +0 -496
- package/schemas/storyboard.v2.json +0 -802
|
@@ -447,6 +447,346 @@
|
|
|
447
447
|
"action"
|
|
448
448
|
]
|
|
449
449
|
}
|
|
450
|
+
},
|
|
451
|
+
"annotations": {
|
|
452
|
+
"type": "array",
|
|
453
|
+
"items": {
|
|
454
|
+
"type": "object",
|
|
455
|
+
"additionalProperties": false,
|
|
456
|
+
"properties": {
|
|
457
|
+
"id": {
|
|
458
|
+
"type": "string",
|
|
459
|
+
"pattern": "^[a-zA-Z][a-zA-Z0-9_-]*$"
|
|
460
|
+
},
|
|
461
|
+
"scene": {
|
|
462
|
+
"type": "string",
|
|
463
|
+
"pattern": "^[a-zA-Z][a-zA-Z0-9_-]*$"
|
|
464
|
+
},
|
|
465
|
+
"target": {
|
|
466
|
+
"oneOf": [
|
|
467
|
+
{
|
|
468
|
+
"type": "object",
|
|
469
|
+
"additionalProperties": false,
|
|
470
|
+
"properties": {
|
|
471
|
+
"type": {
|
|
472
|
+
"const": "region"
|
|
473
|
+
},
|
|
474
|
+
"units": {
|
|
475
|
+
"const": "normalized"
|
|
476
|
+
},
|
|
477
|
+
"x": {
|
|
478
|
+
"type": "number",
|
|
479
|
+
"minimum": 0,
|
|
480
|
+
"maximum": 1
|
|
481
|
+
},
|
|
482
|
+
"y": {
|
|
483
|
+
"type": "number",
|
|
484
|
+
"minimum": 0,
|
|
485
|
+
"maximum": 1
|
|
486
|
+
},
|
|
487
|
+
"width": {
|
|
488
|
+
"type": "number",
|
|
489
|
+
"exclusiveMinimum": 0,
|
|
490
|
+
"maximum": 1
|
|
491
|
+
},
|
|
492
|
+
"height": {
|
|
493
|
+
"type": "number",
|
|
494
|
+
"exclusiveMinimum": 0,
|
|
495
|
+
"maximum": 1
|
|
496
|
+
}
|
|
497
|
+
},
|
|
498
|
+
"required": [
|
|
499
|
+
"type",
|
|
500
|
+
"units",
|
|
501
|
+
"x",
|
|
502
|
+
"y",
|
|
503
|
+
"width",
|
|
504
|
+
"height"
|
|
505
|
+
]
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
"type": "object",
|
|
509
|
+
"additionalProperties": false,
|
|
510
|
+
"properties": {
|
|
511
|
+
"type": {
|
|
512
|
+
"const": "element"
|
|
513
|
+
},
|
|
514
|
+
"selector": {
|
|
515
|
+
"type": "string",
|
|
516
|
+
"minLength": 1
|
|
517
|
+
}
|
|
518
|
+
},
|
|
519
|
+
"required": [
|
|
520
|
+
"type",
|
|
521
|
+
"selector"
|
|
522
|
+
]
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"type": "object",
|
|
526
|
+
"additionalProperties": false,
|
|
527
|
+
"properties": {
|
|
528
|
+
"type": {
|
|
529
|
+
"const": "shape"
|
|
530
|
+
},
|
|
531
|
+
"id": {
|
|
532
|
+
"type": "integer",
|
|
533
|
+
"minimum": 1
|
|
534
|
+
}
|
|
535
|
+
},
|
|
536
|
+
"required": [
|
|
537
|
+
"type",
|
|
538
|
+
"id"
|
|
539
|
+
]
|
|
540
|
+
}
|
|
541
|
+
]
|
|
542
|
+
},
|
|
543
|
+
"effect": {
|
|
544
|
+
"const": "highlight"
|
|
545
|
+
},
|
|
546
|
+
"appearance": {
|
|
547
|
+
"type": "object",
|
|
548
|
+
"additionalProperties": false,
|
|
549
|
+
"properties": {
|
|
550
|
+
"color": {
|
|
551
|
+
"type": "string",
|
|
552
|
+
"pattern": "^#[0-9a-fA-F]{6}$"
|
|
553
|
+
},
|
|
554
|
+
"opacity": {
|
|
555
|
+
"type": "number",
|
|
556
|
+
"exclusiveMinimum": 0,
|
|
557
|
+
"maximum": 1
|
|
558
|
+
},
|
|
559
|
+
"blend": {
|
|
560
|
+
"enum": [
|
|
561
|
+
"source-over",
|
|
562
|
+
"darken"
|
|
563
|
+
]
|
|
564
|
+
},
|
|
565
|
+
"padding": {
|
|
566
|
+
"type": "object",
|
|
567
|
+
"additionalProperties": false,
|
|
568
|
+
"properties": {
|
|
569
|
+
"units": {
|
|
570
|
+
"const": "normalized"
|
|
571
|
+
},
|
|
572
|
+
"x": {
|
|
573
|
+
"type": "number",
|
|
574
|
+
"minimum": 0,
|
|
575
|
+
"maximum": 1
|
|
576
|
+
},
|
|
577
|
+
"y": {
|
|
578
|
+
"type": "number",
|
|
579
|
+
"minimum": 0,
|
|
580
|
+
"maximum": 1
|
|
581
|
+
}
|
|
582
|
+
},
|
|
583
|
+
"required": [
|
|
584
|
+
"units",
|
|
585
|
+
"x",
|
|
586
|
+
"y"
|
|
587
|
+
]
|
|
588
|
+
},
|
|
589
|
+
"bottom_border": {
|
|
590
|
+
"type": "object",
|
|
591
|
+
"additionalProperties": false,
|
|
592
|
+
"properties": {
|
|
593
|
+
"color": {
|
|
594
|
+
"type": "string",
|
|
595
|
+
"pattern": "^#[0-9a-fA-F]{6}$"
|
|
596
|
+
},
|
|
597
|
+
"opacity": {
|
|
598
|
+
"type": "number",
|
|
599
|
+
"exclusiveMinimum": 0,
|
|
600
|
+
"maximum": 1
|
|
601
|
+
},
|
|
602
|
+
"units": {
|
|
603
|
+
"const": "normalized"
|
|
604
|
+
},
|
|
605
|
+
"height": {
|
|
606
|
+
"type": "number",
|
|
607
|
+
"exclusiveMinimum": 0,
|
|
608
|
+
"maximum": 1
|
|
609
|
+
}
|
|
610
|
+
},
|
|
611
|
+
"required": [
|
|
612
|
+
"color",
|
|
613
|
+
"opacity",
|
|
614
|
+
"units",
|
|
615
|
+
"height"
|
|
616
|
+
]
|
|
617
|
+
}
|
|
618
|
+
},
|
|
619
|
+
"required": [
|
|
620
|
+
"color",
|
|
621
|
+
"opacity",
|
|
622
|
+
"padding"
|
|
623
|
+
]
|
|
624
|
+
},
|
|
625
|
+
"at": {
|
|
626
|
+
"type": "object",
|
|
627
|
+
"additionalProperties": false,
|
|
628
|
+
"properties": {
|
|
629
|
+
"segment": {
|
|
630
|
+
"type": "string",
|
|
631
|
+
"pattern": "^[a-zA-Z][a-zA-Z0-9_-]*$"
|
|
632
|
+
},
|
|
633
|
+
"phrase": {
|
|
634
|
+
"type": "string",
|
|
635
|
+
"minLength": 1
|
|
636
|
+
},
|
|
637
|
+
"occurrence": {
|
|
638
|
+
"type": "integer",
|
|
639
|
+
"minimum": 1
|
|
640
|
+
},
|
|
641
|
+
"boundary": {
|
|
642
|
+
"enum": [
|
|
643
|
+
"start",
|
|
644
|
+
"end"
|
|
645
|
+
]
|
|
646
|
+
},
|
|
647
|
+
"offset_ms": {
|
|
648
|
+
"type": "number"
|
|
649
|
+
}
|
|
650
|
+
},
|
|
651
|
+
"required": [
|
|
652
|
+
"segment",
|
|
653
|
+
"phrase",
|
|
654
|
+
"boundary",
|
|
655
|
+
"offset_ms"
|
|
656
|
+
]
|
|
657
|
+
},
|
|
658
|
+
"duration_ms": {
|
|
659
|
+
"type": "number",
|
|
660
|
+
"exclusiveMinimum": 0
|
|
661
|
+
}
|
|
662
|
+
},
|
|
663
|
+
"required": [
|
|
664
|
+
"id",
|
|
665
|
+
"scene",
|
|
666
|
+
"target",
|
|
667
|
+
"effect",
|
|
668
|
+
"appearance",
|
|
669
|
+
"at",
|
|
670
|
+
"duration_ms"
|
|
671
|
+
]
|
|
672
|
+
}
|
|
673
|
+
},
|
|
674
|
+
"overlays": {
|
|
675
|
+
"type": "array",
|
|
676
|
+
"items": {
|
|
677
|
+
"type": "object",
|
|
678
|
+
"additionalProperties": false,
|
|
679
|
+
"properties": {
|
|
680
|
+
"id": {
|
|
681
|
+
"type": "string",
|
|
682
|
+
"pattern": "^[a-zA-Z][a-zA-Z0-9_-]*$"
|
|
683
|
+
},
|
|
684
|
+
"src": {
|
|
685
|
+
"type": "string",
|
|
686
|
+
"minLength": 1
|
|
687
|
+
},
|
|
688
|
+
"box": {
|
|
689
|
+
"type": "object",
|
|
690
|
+
"additionalProperties": false,
|
|
691
|
+
"properties": {
|
|
692
|
+
"x": {
|
|
693
|
+
"type": "number",
|
|
694
|
+
"minimum": 0,
|
|
695
|
+
"maximum": 1
|
|
696
|
+
},
|
|
697
|
+
"y": {
|
|
698
|
+
"type": "number",
|
|
699
|
+
"minimum": 0,
|
|
700
|
+
"maximum": 1
|
|
701
|
+
},
|
|
702
|
+
"width": {
|
|
703
|
+
"type": "number",
|
|
704
|
+
"exclusiveMinimum": 0,
|
|
705
|
+
"maximum": 1
|
|
706
|
+
},
|
|
707
|
+
"height": {
|
|
708
|
+
"type": "number",
|
|
709
|
+
"exclusiveMinimum": 0,
|
|
710
|
+
"maximum": 1
|
|
711
|
+
}
|
|
712
|
+
},
|
|
713
|
+
"required": [
|
|
714
|
+
"x",
|
|
715
|
+
"y",
|
|
716
|
+
"width",
|
|
717
|
+
"height"
|
|
718
|
+
]
|
|
719
|
+
},
|
|
720
|
+
"opacity": {
|
|
721
|
+
"type": "number",
|
|
722
|
+
"minimum": 0,
|
|
723
|
+
"maximum": 1
|
|
724
|
+
},
|
|
725
|
+
"scene": {
|
|
726
|
+
"type": "string",
|
|
727
|
+
"pattern": "^[a-zA-Z][a-zA-Z0-9_-]*$"
|
|
728
|
+
},
|
|
729
|
+
"hide_in_scenes": {
|
|
730
|
+
"type": "array",
|
|
731
|
+
"items": {
|
|
732
|
+
"type": "string",
|
|
733
|
+
"pattern": "^[a-zA-Z][a-zA-Z0-9_-]*$"
|
|
734
|
+
},
|
|
735
|
+
"uniqueItems": true,
|
|
736
|
+
"minItems": 1
|
|
737
|
+
},
|
|
738
|
+
"visible": {
|
|
739
|
+
"type": "array",
|
|
740
|
+
"items": {
|
|
741
|
+
"type": "object",
|
|
742
|
+
"additionalProperties": false,
|
|
743
|
+
"properties": {
|
|
744
|
+
"start": {
|
|
745
|
+
"anyOf": [
|
|
746
|
+
{
|
|
747
|
+
"type": "number",
|
|
748
|
+
"minimum": 0
|
|
749
|
+
},
|
|
750
|
+
{
|
|
751
|
+
"$ref": "#/properties/cues/items/properties/at"
|
|
752
|
+
}
|
|
753
|
+
]
|
|
754
|
+
},
|
|
755
|
+
"end": {
|
|
756
|
+
"anyOf": [
|
|
757
|
+
{
|
|
758
|
+
"type": "number",
|
|
759
|
+
"minimum": 0
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
"$ref": "#/properties/cues/items/properties/at"
|
|
763
|
+
}
|
|
764
|
+
]
|
|
765
|
+
},
|
|
766
|
+
"fade_in_ms": {
|
|
767
|
+
"type": "number",
|
|
768
|
+
"minimum": 0
|
|
769
|
+
},
|
|
770
|
+
"fade_out_ms": {
|
|
771
|
+
"type": "number",
|
|
772
|
+
"minimum": 0
|
|
773
|
+
}
|
|
774
|
+
},
|
|
775
|
+
"required": [
|
|
776
|
+
"start",
|
|
777
|
+
"end"
|
|
778
|
+
]
|
|
779
|
+
},
|
|
780
|
+
"minItems": 1
|
|
781
|
+
}
|
|
782
|
+
},
|
|
783
|
+
"required": [
|
|
784
|
+
"id",
|
|
785
|
+
"src",
|
|
786
|
+
"box",
|
|
787
|
+
"opacity"
|
|
788
|
+
]
|
|
789
|
+
}
|
|
450
790
|
}
|
|
451
791
|
},
|
|
452
792
|
"required": [
|
|
@@ -456,6 +796,7 @@
|
|
|
456
796
|
"media",
|
|
457
797
|
"narration",
|
|
458
798
|
"scenes",
|
|
459
|
-
"cues"
|
|
799
|
+
"cues",
|
|
800
|
+
"annotations"
|
|
460
801
|
]
|
|
461
802
|
}
|
|
@@ -9,7 +9,7 @@ Own the storyboard and the workflow from an existing presentation to a narrated
|
|
|
9
9
|
|
|
10
10
|
Work in the folder containing the creator's presentation. The installed CLI supplies this skill and its references offline. Use `slidevideo skill --json` for the installed Markdown file's path and contents. Resolve relative links from that file.
|
|
11
11
|
|
|
12
|
-
Run `slidevideo skill storyboard` for the [storyboard reference](references/storyboard.md) when drafting or revising YAML. It covers
|
|
12
|
+
Run `slidevideo skill storyboard` for the [storyboard reference](references/storyboard.md) when drafting or revising YAML. It covers timing, marker highlights, image overlays, voice options and presentation limits. The bundled [storyboard schema](../../schemas/storyboard.v1.json) defines the fields. Use `slidevideo validate` to check the draft against the actual deck.
|
|
13
13
|
|
|
14
14
|
Run `slidevideo skill production` for the [production workflow](references/production.md) when setting up, recording or diagnosing a video. Start a new storyboard from the [minimal example](references/storyboard.md#minimal-authored-example) and use the actual slide names from the supplied presentation.
|
|
15
15
|
|
|
@@ -35,7 +35,7 @@ Use stable IDs and paths relative to the storyboard. Include all required root f
|
|
|
35
35
|
|
|
36
36
|
For marker highlights, run `slidevideo inspect --storyboard <file> --json` to discover existing audience-slide selectors or native shape IDs. Inspect the deck and returned visibility/click information before choosing a target. Regions need no element metadata. Never invent an element ID, edit the deck to create a target, infer words inside an image or claim whole-shape bounds establish word geometry.
|
|
37
37
|
|
|
38
|
-
Use
|
|
38
|
+
Use the `annotations` array for highlights. The [marker example and target fields](references/storyboard.md#marker-highlights) cover Slidev and PowerPoint. Bind each highlight to an existing narration phrase and scene, with a positive duration inside one settled slide visit and reveal state. Choose normalized regions, Slidev element selectors or native PowerPoint shape IDs as appropriate. Color, opacity, normalized x/y padding, optional `blend` and optional `bottom_border` belong to `appearance`. Other effects and moving targets are unsupported.
|
|
39
39
|
|
|
40
40
|
Add, change or remove only the requested annotation and preserve unrelated annotations, narration, scene actions, media, IDs and settings. A new video after an annotation-only edit needs a new run and can reuse matching speech. Validate the draft through the real CLI. Required phrase alignment and actual target geometry are checked during resolution and capture. Highlights are composited into the final MP4, so ordinary deck playback and the raw recording remain unannotated.
|
|
41
41
|
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
## Set up the host
|
|
4
4
|
|
|
5
|
-
Use the installed `slidevideo` executable in the presentation folder. Run `slidevideo setup` to
|
|
5
|
+
Use the installed `slidevideo` executable in the presentation folder. Run `slidevideo setup` to prepare speech providers and detect Slidev and native PowerPoint support, or `slidevideo setup --help` for setup options. The deck extension selects the presentation adapter, and the storyboard selects the speech provider and voice. Windows PowerShell can use `slidevideo.cmd` when execution policy blocks the generated `.ps1` launcher.
|
|
6
6
|
|
|
7
|
-
Slidev needs its browser runtime. Native PowerPoint needs installed desktop PowerPoint on Windows with an unlocked interactive desktop. Both use FFmpeg and ffprobe. Edge TTS uses the pinned local Python adapter.
|
|
7
|
+
Slidev needs its browser runtime. Native PowerPoint needs installed desktop PowerPoint on Windows with an unlocked interactive desktop. Both use FFmpeg and ffprobe. Edge TTS uses the pinned local Python adapter. ElevenLabs setup saves an API key in the per-user config for all projects. Existing environment or local `.env` credentials remain optional overrides. Credentials never belong in storyboards or chat output.
|
|
8
8
|
|
|
9
9
|
Keep the existing presentation as input. The production CLI does not require an AI agent to author intermediate files or an authoring script to recreate the deck. Narration text is authored in the storyboard, and the selected TTS service synthesizes its audio.
|
|
10
10
|
|
|
@@ -16,7 +16,7 @@ For a visual pacing review, use `play --storyboard <file>` and open the printed
|
|
|
16
16
|
|
|
17
17
|
For a requested finished video, use `build`. It validates inputs, generates or reuses matching speech, resolves timing, captures the presentation and assembles the MP4. Use a new run directory and pass `--cache-dir` when the creator has a speech cache.
|
|
18
18
|
|
|
19
|
-
Use staged commands when an intermediate result is useful to the creator. `tts` prepares audio and alignment, `resolve` calculates the schedule, `record` captures from resolved inputs, and `assemble` produces the final MP4. A requested narration review can occur after `tts` and before capture. `record` does not generate speech implicitly.
|
|
19
|
+
Use staged commands when an intermediate result is useful to the creator. `tts` prepares audio and alignment, `resolve` calculates the schedule, `record` captures from resolved inputs, and `assemble` produces the final MP4. Begin with a new or empty run directory. Commands reject a nonempty directory without a run manifest before writing run artifacts. A requested narration review can occur after `tts` and before capture. `record` does not generate speech implicitly.
|
|
20
20
|
|
|
21
21
|
Run `slidevideo --help` for command options. To record the presentation in the current folder, run the following command.
|
|
22
22
|
|
|
@@ -28,17 +28,17 @@ That run directory must be new or empty. A nonzero exit, failed status or missin
|
|
|
28
28
|
|
|
29
29
|
## Produce marker highlights
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
Follow the [marker field reference](storyboard.md#marker-highlights). Discover actual targets with `slidevideo inspect --storyboard <file> --json`. Existing Slidev selectors and native shape IDs belong to their adapters. Regions use normalized slide coordinates. Do not edit the source deck to introduce targets.
|
|
32
32
|
|
|
33
33
|
Use the same `validate` and `build` commands for a storyboard with markers. The assembler draws highlights on the captured frames. A changed annotation needs a new run and can reuse matching speech.
|
|
34
34
|
|
|
35
|
-
Inspect geometry observations, `assembly/annotations-applied.json` and `assembly/report.json` separately from base-capture timing. Normal final-composite evidence remains `not_evaluated`. Requested timing proof checks decoded final frames and retains `assembly/annotations-evidence.json`. Unobservable boundaries fail explicitly. [Marker limits and target types](storyboard.md#
|
|
35
|
+
Inspect geometry observations, `assembly/annotations-applied.json` and `assembly/report.json` separately from base-capture timing. Normal final-composite evidence remains `not_evaluated`. Requested timing proof checks decoded final frames and retains `assembly/annotations-evidence.json`. Unobservable boundaries fail explicitly. [Marker limits and target types](storyboard.md#marker-highlights)
|
|
36
36
|
|
|
37
37
|
## Reuse speech and preserve revisions
|
|
38
38
|
|
|
39
39
|
Speech reuse depends on the segment text, provider, voice, options and adapter version. Keep generated speech in a cache to reuse matching audio and alignment on later recordings, including paid ElevenLabs narration.
|
|
40
40
|
|
|
41
|
-
After feedback changes the storyboard, choose a new run and reuse compatible speech through the cache. `build --resume` is for unchanged inputs and intact completed stages. It cannot apply an edited storyboard to an old run. Never overwrite failed recording evidence. Follow an explicit user cleanup request separately from production.
|
|
41
|
+
After feedback changes the storyboard, choose a new run and reuse compatible speech through the cache. `build --resume` is for unchanged inputs and intact completed stages. It cannot apply an edited storyboard to an old run. An occupied destination does not bind a fresh assembly attempt. Retry `assemble` with another output filename and the same retained capture. Never overwrite failed recording evidence. Follow an explicit user cleanup request separately from production.
|
|
42
42
|
|
|
43
43
|
Keep authored intent, actual alignment, resolved timing, observed execution and decoded-frame evidence separate. Do not estimate word timings from text length, edit generated alignment or stretch narration to hide drift. Capture follows timing resolved from the exact speech and media.
|
|
44
44
|
|
|
@@ -56,6 +56,7 @@ Staged `assemble` and resumed builds inherit the run's timing mode. Changing tha
|
|
|
56
56
|
|
|
57
57
|
| Diagnostic | Relevant response |
|
|
58
58
|
| --- | --- |
|
|
59
|
+
| `NEW_RUN_REQUIRED` | Preserve the existing files and choose a new or empty run directory. Use `build --resume` only for initialized runs with unchanged inputs. |
|
|
59
60
|
| `SCHEMA`, `DUPLICATE_ID`, reference errors | Correct the authored fields or references against the storyboard reference. |
|
|
60
61
|
| `CUE_ALIGNMENT_REQUIRED`, `CUE_PHRASE_MISSING`, `CUE_AMBIGUOUS`, `CUE_BOUNDARY` | Inspect the exact paired transcript and alignment. Revise the intended phrase or action with the creator. Do not invent timings. |
|
|
61
62
|
| `REVEAL_TARGET`, `REVEAL_ORDER`, `ACTION_CONFLICT`, `MEDIA_NAVIGATION`, `SCENE_DURATION` | Check the merged sequence and cues, active slide, click order and reserved durations. |
|
|
@@ -14,7 +14,7 @@ IDs and slide targets use `^[a-zA-Z][a-zA-Z0-9_-]*$`. They start with an ASCII l
|
|
|
14
14
|
|
|
15
15
|
| Field | Required | Meaning |
|
|
16
16
|
| --- | --- | --- |
|
|
17
|
-
| `version` | Yes |
|
|
17
|
+
| `version` | Yes | Schema version. Always `1`. |
|
|
18
18
|
| `deck` | Yes | Nonempty path to an existing Slidev `.md` or native PowerPoint `.pptx` input. |
|
|
19
19
|
| `voice` | No | Default voice for narration. Every spoken segment needs either this default or its own voice. Silent productions can omit it. |
|
|
20
20
|
| `output` | Yes | Requested video dimensions and frame rate. |
|
|
@@ -22,8 +22,8 @@ IDs and slide targets use `^[a-zA-Z][a-zA-Z0-9_-]*$`. They start with an ASCII l
|
|
|
22
22
|
| `narration` | Yes | Array of text segments. `[]` supports a silent or source-audio-only production. |
|
|
23
23
|
| `scenes` | Yes | Ordered scenes and their sequential actions. Total resolved production duration must be positive. |
|
|
24
24
|
| `cues` | Yes | Array of phrase-driven visual actions. `[]` is valid. |
|
|
25
|
-
| `annotations` |
|
|
26
|
-
| `overlays` | No
|
|
25
|
+
| `annotations` | Yes | Array of phrase-triggered rectangular marker highlights. Use `[]` when none are needed. |
|
|
26
|
+
| `overlays` | No | Frame-fixed image layers for the exported video. |
|
|
27
27
|
|
|
28
28
|
Required fields have no implicit root defaults. Examples commonly choose 1920 by 1080 at 30 fps, but those values must be authored.
|
|
29
29
|
|
|
@@ -57,7 +57,7 @@ ElevenLabs option values are:
|
|
|
57
57
|
| `similarity_boost` | Number from 0 to 1. | Provider default. |
|
|
58
58
|
| `speed` | Number from 0.7 to 1.2. | Provider default. |
|
|
59
59
|
|
|
60
|
-
Credentials
|
|
60
|
+
Credentials never belong in YAML. Run `slidevideo setup` to prepare both speech providers or leave either for later. It saves one ElevenLabs API key in the per-user config for all projects. Existing `ELEVENLABS_API_KEY` or legacy `ELEVENLABS_KEY` values from the environment or local `.env` override the saved key. Edge uses the pinned local Python adapter. Provider and voice selection remain in the storyboard.
|
|
61
61
|
|
|
62
62
|
## Media declarations
|
|
63
63
|
|
|
@@ -179,6 +179,7 @@ scenes:
|
|
|
179
179
|
type: hold
|
|
180
180
|
duration_ms: 1000
|
|
181
181
|
cues: []
|
|
182
|
+
annotations: []
|
|
182
183
|
```
|
|
183
184
|
|
|
184
185
|
For Slidev, set `deck` to your Markdown presentation path, such as `./slides.md`, and use its slide's frontmatter name as the scene's `slide` value.
|
|
@@ -191,9 +192,9 @@ Changing only a hold can reuse unchanged speech through a matching cache. A chan
|
|
|
191
192
|
|
|
192
193
|
The YAML has no fields for output filenames, run directories, caches, credentials, timeouts or timing-verification mode. Those belong to CLI options or the environment. It also has no arbitrary absolute action timestamp or dedicated settings for captions, background music or automatic ducking. Extra fields are rejected rather than silently interpreted.
|
|
193
194
|
|
|
194
|
-
##
|
|
195
|
+
## Marker highlights
|
|
195
196
|
|
|
196
|
-
|
|
197
|
+
The [storyboard schema](../../../schemas/storyboard.v1.json) requires `annotations` and accepts only the implemented `highlight` effect. Each annotation has globally unique `id`, `scene`, `target`, `effect`, `appearance`, `at` and `duration_ms` fields. The `at` object has exactly the phrase-cue semantics above, including occurrence, boundary and offset. The phrase must belong to narration scheduled in that scene.
|
|
197
198
|
|
|
198
199
|
```yaml
|
|
199
200
|
annotations:
|
|
@@ -239,9 +240,9 @@ For a PowerPoint shape, use a target such as `{ type: shape, id: 2 }` when inspe
|
|
|
239
240
|
|
|
240
241
|
Raw captures contain no highlights. The shared assembler draws them after capture without stretching narration or freezing slide animation. Normal output retains timing `not_evaluated`. Requested timing verification also decodes final frames and checks the expected visible/clear state near both interval boundaries. Tiny, low-contrast or fully obscured regions, or an end with no following output frame, cannot establish this proof and fail explicitly. No extra effect, entrance/exit animation, text-range discovery or word following is accepted.
|
|
241
242
|
|
|
242
|
-
##
|
|
243
|
+
## Image overlays
|
|
243
244
|
|
|
244
|
-
Add these root fields to
|
|
245
|
+
Add these root fields to the storyboard. Use your own image paths and scene IDs.
|
|
245
246
|
|
|
246
247
|
```yaml
|
|
247
248
|
annotations: []
|