@serene-pub/contracts 0.6.0-pr-6 โ 0.6.0-pr-8
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/dist/inlets.d.ts +16 -8
- package/dist/inlets.js +17 -8
- package/dist/oracles.d.ts +192 -5
- package/dist/oracles.js +106 -10
- package/dist/outlets.d.ts +413 -18
- package/dist/outlets.js +462 -21
- package/dist/queries.d.ts +429 -1
- package/dist/queries.js +435 -3
- package/dist/tasks.d.ts +257 -24
- package/dist/tasks.js +175 -15
- package/package.json +3 -3
package/dist/inlets.d.ts
CHANGED
|
@@ -666,18 +666,20 @@ export declare const summarizeRequest: import("@serene-pub/sdk").Pinned<import("
|
|
|
666
666
|
slots?: Record<string, import("@serene-pub/sdk").SlotDecl> | undefined;
|
|
667
667
|
}>;
|
|
668
668
|
/**
|
|
669
|
-
* ๐ง A person pressed an action on a **card**
|
|
670
|
-
* session: *Fill empty sprites* on
|
|
671
|
-
* Sprites tab, and *Generate portrait* on the Gallery tab (`count`,
|
|
672
|
-
* in place 2026-10-12).
|
|
669
|
+
* ๐ง A person pressed an action on a **card** or a **cast member** โ the
|
|
670
|
+
* Characters view or the member page, not a session: *Fill empty sprites* on
|
|
671
|
+
* the Sprites tab, and *Generate portrait* on the Gallery tab (`count`,
|
|
672
|
+
* widened in place 2026-10-12).
|
|
673
673
|
*
|
|
674
674
|
* ## No session
|
|
675
675
|
*
|
|
676
676
|
* A card action runs with no session in scope: nothing here is a session's,
|
|
677
677
|
* no live row is filled, no session event is written. The host checks the
|
|
678
|
-
* person may act on the card
|
|
679
|
-
*
|
|
680
|
-
*
|
|
678
|
+
* person may act on it before the run starts (a card: its owner, or an
|
|
679
|
+
* admin; a cast member: whoever may edit the member's lorebook), and
|
|
680
|
+
* resolves its likeness ONCE, here โ as text and as the reference image (a
|
|
681
|
+
* member's from the member as the story reads it) โ so no node re-reads the
|
|
682
|
+
* character for a setting. `main` is `{ characterId, castMemberId, fields }`.
|
|
681
683
|
*
|
|
682
684
|
* ## The form's answers
|
|
683
685
|
*
|
|
@@ -692,8 +694,14 @@ export declare const summarizeRequest: import("@serene-pub/sdk").Pinned<import("
|
|
|
692
694
|
*/
|
|
693
695
|
export declare const cardAction: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
694
696
|
main: string;
|
|
695
|
-
/** The card the action was pressed on. */
|
|
697
|
+
/** The card the action was pressed on; null when it was pressed on a cast member. */
|
|
696
698
|
characterId: string;
|
|
699
|
+
/**
|
|
700
|
+
* ๐ง The cast member the action was pressed on (host-filled); then
|
|
701
|
+
* `characterId` is null and the action's writes go to the member's
|
|
702
|
+
* own sprite sets / gallery.
|
|
703
|
+
*/
|
|
704
|
+
castMemberId: string;
|
|
697
705
|
/** The card's likeness prompt โ its look as a tag line; empty when unset. */
|
|
698
706
|
likeness: string;
|
|
699
707
|
/** The card's likeness negative; empty when unset. */
|
package/dist/inlets.js
CHANGED
|
@@ -897,18 +897,20 @@ export const summarizeRequest = pin(describeInletDefinition({
|
|
|
897
897
|
}));
|
|
898
898
|
// โโ A card's own action (image generation I5, 2026-10-12) โโโโโโโโโโโโโโโโโโ
|
|
899
899
|
/**
|
|
900
|
-
* ๐ง A person pressed an action on a **card**
|
|
901
|
-
* session: *Fill empty sprites* on
|
|
902
|
-
* Sprites tab, and *Generate portrait* on the Gallery tab (`count`,
|
|
903
|
-
* in place 2026-10-12).
|
|
900
|
+
* ๐ง A person pressed an action on a **card** or a **cast member** โ the
|
|
901
|
+
* Characters view or the member page, not a session: *Fill empty sprites* on
|
|
902
|
+
* the Sprites tab, and *Generate portrait* on the Gallery tab (`count`,
|
|
903
|
+
* widened in place 2026-10-12).
|
|
904
904
|
*
|
|
905
905
|
* ## No session
|
|
906
906
|
*
|
|
907
907
|
* A card action runs with no session in scope: nothing here is a session's,
|
|
908
908
|
* no live row is filled, no session event is written. The host checks the
|
|
909
|
-
* person may act on the card
|
|
910
|
-
*
|
|
911
|
-
*
|
|
909
|
+
* person may act on it before the run starts (a card: its owner, or an
|
|
910
|
+
* admin; a cast member: whoever may edit the member's lorebook), and
|
|
911
|
+
* resolves its likeness ONCE, here โ as text and as the reference image (a
|
|
912
|
+
* member's from the member as the story reads it) โ so no node re-reads the
|
|
913
|
+
* character for a setting. `main` is `{ characterId, castMemberId, fields }`.
|
|
912
914
|
*
|
|
913
915
|
* ## The form's answers
|
|
914
916
|
*
|
|
@@ -929,12 +931,19 @@ export const cardAction = pin(describeInletDefinition({
|
|
|
929
931
|
*/
|
|
930
932
|
entities: {
|
|
931
933
|
characterId: 'subject',
|
|
934
|
+
castMemberId: 'cast-member',
|
|
932
935
|
},
|
|
933
936
|
ports: {
|
|
934
937
|
out: {
|
|
935
938
|
main: S.json,
|
|
936
|
-
/** The card the action was pressed on. */
|
|
939
|
+
/** The card the action was pressed on; null when it was pressed on a cast member. */
|
|
937
940
|
characterId: S.rowIds,
|
|
941
|
+
/**
|
|
942
|
+
* ๐ง The cast member the action was pressed on (host-filled); then
|
|
943
|
+
* `characterId` is null and the action's writes go to the member's
|
|
944
|
+
* own sprite sets / gallery.
|
|
945
|
+
*/
|
|
946
|
+
castMemberId: S.rowIds,
|
|
938
947
|
/** The card's likeness prompt โ its look as a tag line; empty when unset. */
|
|
939
948
|
likeness: S.text,
|
|
940
949
|
/** The card's likeness negative; empty when unset. */
|
package/dist/oracles.d.ts
CHANGED
|
@@ -651,11 +651,44 @@ export declare const generateJson: import("@serene-pub/sdk").Pinned<import("@ser
|
|
|
651
651
|
};
|
|
652
652
|
} | undefined;
|
|
653
653
|
}>;
|
|
654
|
-
/**
|
|
654
|
+
/**
|
|
655
|
+
* ๐ง **Speak** โ a line's script in, its audio out (PLAN-speech-connections-
|
|
656
|
+
* and-timbre ยง10โยง11; seam S3, evolved in place and bound 2026-10-28).
|
|
657
|
+
*
|
|
658
|
+
* Reads `cues` (`core:task/cue-lines@1`'s script), groups consecutive cues
|
|
659
|
+
* that share a voice and an inflection, renders each group through the line
|
|
660
|
+
* `template`, and makes one call per group โ `speaker` cues in the speaker's
|
|
661
|
+
* voice, `narrator` cues in the session's narrator voice, `silent` cues never
|
|
662
|
+
* sent โ joining the audio with a fixed `gapMs` gap. Publishes the audio, the
|
|
663
|
+
* `cueMap` (where each cue sits in it), `spokenAs` (voice, model, applied,
|
|
664
|
+
* ignored) and `meta`, the three assembled as the `SpokenMeta` record
|
|
665
|
+
* `core:outlet/attach-audio@1` keeps on the line. Deterministic: the same line,
|
|
666
|
+
* label and templates make the same requests, byte for byte.
|
|
667
|
+
*
|
|
668
|
+
* Never picks a connection: unset, the `loadout` is the `text->audio`
|
|
669
|
+
* default โ the **Narration** loadout, the one global speaking pair (ruled
|
|
670
|
+
* 2026-10-28). `skipCodeBlocks` left with the cue task, which drops code.
|
|
671
|
+
* @experimental
|
|
672
|
+
*/
|
|
655
673
|
export declare const speak: import("@serene-pub/sdk").Pinned<import("@serene-pub/sdk").Descriptor<{
|
|
656
674
|
main: string;
|
|
657
675
|
audio: string;
|
|
676
|
+
cueMap: string;
|
|
677
|
+
spokenAs: string;
|
|
678
|
+
/** ๐ง `SpokenMeta` โ the record attach-audio keeps on the line. */
|
|
679
|
+
meta: string;
|
|
658
680
|
}, {
|
|
681
|
+
/** ๐ง The script โ `Cue[]` from `core:task/cue-lines@1`. */
|
|
682
|
+
cues: string;
|
|
683
|
+
/** Whose line it is: `speaker` cues speak in this participant's voice. */
|
|
684
|
+
speaker: string;
|
|
685
|
+
/** ISO 639-1. Absent: the voice's timbre language, then the session's, then the pub's. */
|
|
686
|
+
language: string;
|
|
687
|
+
/**
|
|
688
|
+
* โณ The one-release alias: a bare text, read as one cue in the
|
|
689
|
+
* speaker's voice when `cues` is not wired. Expires the release
|
|
690
|
+
* after speech ships.
|
|
691
|
+
*/
|
|
659
692
|
text: string;
|
|
660
693
|
}, "core:oracle/speak@1"> & {
|
|
661
694
|
kind: 'oracle';
|
|
@@ -675,18 +708,166 @@ export declare const speak: import("@serene-pub/sdk").Pinned<import("@serene-pub
|
|
|
675
708
|
readonly quick: true;
|
|
676
709
|
readonly shape: string;
|
|
677
710
|
};
|
|
711
|
+
/**
|
|
712
|
+
* ๐ง The written **direction** โ the timbre description, the
|
|
713
|
+
* inflection sentence (`{{ inflectionSentence }}`), the genre's tone
|
|
714
|
+
* line. Rendered only for a model that takes a written direction
|
|
715
|
+
* (`controls.instruction`); any other reports `direction` ignored.
|
|
716
|
+
*/
|
|
717
|
+
readonly prompts: {
|
|
718
|
+
readonly kind: "prompts";
|
|
719
|
+
readonly facet: "prompts";
|
|
720
|
+
readonly description: "How the voice is directed โ sent only to a voice model that takes written direction.";
|
|
721
|
+
readonly fields: {
|
|
722
|
+
readonly direction: {
|
|
723
|
+
readonly type: "text";
|
|
724
|
+
};
|
|
725
|
+
};
|
|
726
|
+
};
|
|
727
|
+
/** ๐ง The **line template**: renders one group of cues into the text of one call. */
|
|
678
728
|
readonly template: {
|
|
679
729
|
readonly kind: "template";
|
|
680
730
|
readonly engine: string;
|
|
681
731
|
readonly facet: "templates";
|
|
732
|
+
readonly variables: {
|
|
733
|
+
readonly cues: {
|
|
734
|
+
readonly type: 'list';
|
|
735
|
+
readonly description: 'The cues of this group, in order โ each { text, kind, voice, speaker?, inflection?, markers?, emphasis? }.';
|
|
736
|
+
readonly of: {
|
|
737
|
+
readonly type: 'object';
|
|
738
|
+
readonly fields: {
|
|
739
|
+
readonly text: {
|
|
740
|
+
readonly type: 'string';
|
|
741
|
+
};
|
|
742
|
+
readonly kind: {
|
|
743
|
+
readonly type: 'string';
|
|
744
|
+
readonly description: 'dialogue, narration, action or aside.';
|
|
745
|
+
};
|
|
746
|
+
readonly voice: {
|
|
747
|
+
readonly type: 'string';
|
|
748
|
+
readonly description: 'speaker, narrator or silent.';
|
|
749
|
+
};
|
|
750
|
+
readonly speaker: {
|
|
751
|
+
readonly type: 'string';
|
|
752
|
+
readonly optional: true;
|
|
753
|
+
};
|
|
754
|
+
readonly inflection: {
|
|
755
|
+
readonly type: 'string';
|
|
756
|
+
readonly optional: true;
|
|
757
|
+
};
|
|
758
|
+
readonly markers: {
|
|
759
|
+
readonly type: 'list';
|
|
760
|
+
readonly of: {
|
|
761
|
+
readonly type: 'string';
|
|
762
|
+
};
|
|
763
|
+
readonly optional: true;
|
|
764
|
+
};
|
|
765
|
+
readonly emphasis: {
|
|
766
|
+
readonly type: 'string';
|
|
767
|
+
readonly optional: true;
|
|
768
|
+
};
|
|
769
|
+
};
|
|
770
|
+
};
|
|
771
|
+
};
|
|
772
|
+
readonly speaker: {
|
|
773
|
+
readonly type: 'object';
|
|
774
|
+
readonly description: 'Who the line belongs to.';
|
|
775
|
+
readonly fields: {
|
|
776
|
+
readonly ref: {
|
|
777
|
+
readonly type: 'string';
|
|
778
|
+
readonly description: 'The participant ref โ character:12, user:3, narrator.';
|
|
779
|
+
};
|
|
780
|
+
readonly name: {
|
|
781
|
+
readonly type: 'string';
|
|
782
|
+
readonly optional: true;
|
|
783
|
+
};
|
|
784
|
+
};
|
|
785
|
+
};
|
|
786
|
+
readonly voice: {
|
|
787
|
+
readonly type: 'string';
|
|
788
|
+
readonly description: "This group's voice โ speaker or narrator. Never a service's voice id.";
|
|
789
|
+
};
|
|
790
|
+
readonly controls: {
|
|
791
|
+
readonly type: 'object';
|
|
792
|
+
readonly description: 'What the resolved model takes: prose instruction, inline tags, several speakers.';
|
|
793
|
+
readonly fields: {
|
|
794
|
+
readonly instruction: {
|
|
795
|
+
readonly type: 'string';
|
|
796
|
+
readonly optional: true;
|
|
797
|
+
readonly description: "'prose' when the model takes a written direction.";
|
|
798
|
+
};
|
|
799
|
+
readonly tags: {
|
|
800
|
+
readonly type: 'object';
|
|
801
|
+
readonly optional: true;
|
|
802
|
+
readonly description: 'Present when the model takes inline tags.';
|
|
803
|
+
readonly fields: {
|
|
804
|
+
readonly syntax: {
|
|
805
|
+
readonly type: 'string';
|
|
806
|
+
};
|
|
807
|
+
readonly vocabulary: {
|
|
808
|
+
readonly type: 'list';
|
|
809
|
+
readonly of: {
|
|
810
|
+
readonly type: 'string';
|
|
811
|
+
};
|
|
812
|
+
readonly optional: true;
|
|
813
|
+
readonly description: 'Absent when any tag is taken.';
|
|
814
|
+
};
|
|
815
|
+
};
|
|
816
|
+
};
|
|
817
|
+
readonly multiSpeaker: {
|
|
818
|
+
readonly type: 'boolean';
|
|
819
|
+
readonly optional: true;
|
|
820
|
+
};
|
|
821
|
+
readonly language: {
|
|
822
|
+
readonly type: 'list';
|
|
823
|
+
readonly of: {
|
|
824
|
+
readonly type: 'string';
|
|
825
|
+
};
|
|
826
|
+
readonly optional: true;
|
|
827
|
+
};
|
|
828
|
+
};
|
|
829
|
+
};
|
|
830
|
+
};
|
|
831
|
+
readonly description: "Which parts of a line are spoken, and how each one reads. Whole line, Dialogue only and Narration only ship.";
|
|
832
|
+
};
|
|
833
|
+
/** ๐ง How an inflection reads as a direction and as an inline tag (ยง11.3). */
|
|
834
|
+
readonly variables: {
|
|
835
|
+
readonly kind: "variables";
|
|
836
|
+
readonly facet: "variables";
|
|
837
|
+
readonly description: "How an inflection reads โ as a sentence directing the voice, and as an inline tag.";
|
|
838
|
+
readonly renders: {
|
|
839
|
+
readonly inflectionSentence: "core:var/inflection-sentence@1";
|
|
840
|
+
readonly inflectionTag: "core:var/inflection-tag@1";
|
|
841
|
+
};
|
|
682
842
|
};
|
|
843
|
+
/**
|
|
844
|
+
* No `facet`, like the image step's: both decide how the audio is
|
|
845
|
+
* made and joined, not what the voice is asked for.
|
|
846
|
+
*/
|
|
683
847
|
readonly params: {
|
|
684
848
|
readonly kind: "parameters";
|
|
685
|
-
readonly facet: "weights";
|
|
686
849
|
readonly schema: {
|
|
687
|
-
readonly
|
|
850
|
+
readonly streaming: {
|
|
688
851
|
readonly type: "boolean";
|
|
689
|
-
readonly default:
|
|
852
|
+
readonly default: false;
|
|
853
|
+
readonly label: {
|
|
854
|
+
readonly en: "Stream speech";
|
|
855
|
+
};
|
|
856
|
+
readonly description: {
|
|
857
|
+
readonly en: "Hand each part of the line on as it is made, where the voice model can (audio_streaming). Off makes the whole line first.";
|
|
858
|
+
};
|
|
859
|
+
};
|
|
860
|
+
readonly gapMs: {
|
|
861
|
+
readonly type: "number";
|
|
862
|
+
readonly default: 200;
|
|
863
|
+
readonly min: 0;
|
|
864
|
+
readonly max: 2000;
|
|
865
|
+
readonly label: {
|
|
866
|
+
readonly en: "Pause between parts (ms)";
|
|
867
|
+
};
|
|
868
|
+
readonly description: {
|
|
869
|
+
readonly en: "The silence put between two parts of a line spoken in separate calls โ a change of voice or of inflection.";
|
|
870
|
+
};
|
|
690
871
|
};
|
|
691
872
|
};
|
|
692
873
|
};
|
|
@@ -1134,6 +1315,10 @@ export declare const pickSprite: import("@serene-pub/sdk").Pinned<import("@seren
|
|
|
1134
1315
|
/**
|
|
1135
1316
|
* What the speaker could show, and how the set was decided
|
|
1136
1317
|
* (`decidedBy`, `missing`) โ for the receipt, never for the line.
|
|
1318
|
+
* ๐ง `castMemberId` names the speaker; the card the art comes
|
|
1319
|
+
* from cascades (the member's own sets per its configuration,
|
|
1320
|
+
* else the card active on the timeline), โณ `characterId`
|
|
1321
|
+
* (removed in S5) null when the member's own sets draw.
|
|
1137
1322
|
*/
|
|
1138
1323
|
choices: string;
|
|
1139
1324
|
}, {
|
|
@@ -1163,7 +1348,9 @@ export declare const pickSprite: import("@serene-pub/sdk").Pinned<import("@seren
|
|
|
1163
1348
|
* The sprite set to choose within, when the spec knows it.
|
|
1164
1349
|
* Absent โ every core spec โ the set is decided from the
|
|
1165
1350
|
* speaker, in one order: the session's override, then the cast
|
|
1166
|
-
* member's set, then the card's default set
|
|
1351
|
+
* member's set, then the card's default set โ the card being
|
|
1352
|
+
* the cascade's (the member's own sets per its configuration,
|
|
1353
|
+
* else the card active on the timeline). A name the card
|
|
1167
1354
|
* has no set by falls to the default set and says so on
|
|
1168
1355
|
* `choices`, never silently.
|
|
1169
1356
|
*/
|
package/dist/oracles.js
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { S, tf, IoKinds } from '@serene-pub/sdk';
|
|
9
9
|
import { jinja2 } from '@serene-pub/sdk';
|
|
10
|
+
import { SPOKEN_LINE_TEMPLATE_SCOPE } from '@serene-pub/sdk';
|
|
10
11
|
import { describeOracleDefinition, pin } from '@serene-pub/sdk';
|
|
11
12
|
/**
|
|
12
13
|
* How a provider node wants its request sent.
|
|
@@ -848,17 +849,34 @@ export const generateJson = pin(describeOracleDefinition({
|
|
|
848
849
|
},
|
|
849
850
|
},
|
|
850
851
|
}));
|
|
851
|
-
/**
|
|
852
|
+
/**
|
|
853
|
+
* ๐ง **Speak** โ a line's script in, its audio out (PLAN-speech-connections-
|
|
854
|
+
* and-timbre ยง10โยง11; seam S3, evolved in place and bound 2026-10-28).
|
|
855
|
+
*
|
|
856
|
+
* Reads `cues` (`core:task/cue-lines@1`'s script), groups consecutive cues
|
|
857
|
+
* that share a voice and an inflection, renders each group through the line
|
|
858
|
+
* `template`, and makes one call per group โ `speaker` cues in the speaker's
|
|
859
|
+
* voice, `narrator` cues in the session's narrator voice, `silent` cues never
|
|
860
|
+
* sent โ joining the audio with a fixed `gapMs` gap. Publishes the audio, the
|
|
861
|
+
* `cueMap` (where each cue sits in it), `spokenAs` (voice, model, applied,
|
|
862
|
+
* ignored) and `meta`, the three assembled as the `SpokenMeta` record
|
|
863
|
+
* `core:outlet/attach-audio@1` keeps on the line. Deterministic: the same line,
|
|
864
|
+
* label and templates make the same requests, byte for byte.
|
|
865
|
+
*
|
|
866
|
+
* Never picks a connection: unset, the `loadout` is the `text->audio`
|
|
867
|
+
* default โ the **Narration** loadout, the one global speaking pair (ruled
|
|
868
|
+
* 2026-10-28). `skipCodeBlocks` left with the cue task, which drops code.
|
|
869
|
+
* @experimental
|
|
870
|
+
*/
|
|
852
871
|
export const speak = pin(describeOracleDefinition({
|
|
853
872
|
id: 'core:oracle/speak@1',
|
|
854
873
|
i18n: { name: { en: 'Speak' } },
|
|
855
874
|
shape: S.tts,
|
|
856
875
|
effects: 'external',
|
|
857
|
-
/**
|
|
858
|
-
|
|
859
|
-
/**
|
|
860
|
-
|
|
861
|
-
timeoutMs: 60000,
|
|
876
|
+
/** The script may be corrected before the call; `text` is the one-release alias. */
|
|
877
|
+
review: { fields: ['cues', 'text'] },
|
|
878
|
+
/** Several group calls on a local TTS server; 60 s was the unbound default. */
|
|
879
|
+
timeoutMs: 180000,
|
|
862
880
|
slots: {
|
|
863
881
|
loadout: LOADOUT_SLOT,
|
|
864
882
|
connection: {
|
|
@@ -868,18 +886,90 @@ export const speak = pin(describeOracleDefinition({
|
|
|
868
886
|
requires: [tf({ in: [IoKinds.text], out: [IoKinds.audio] })],
|
|
869
887
|
},
|
|
870
888
|
sampling: { kind: 'sampling', quick: true, shape: S.tts },
|
|
889
|
+
/**
|
|
890
|
+
* ๐ง The written **direction** โ the timbre description, the
|
|
891
|
+
* inflection sentence (`{{ inflectionSentence }}`), the genre's tone
|
|
892
|
+
* line. Rendered only for a model that takes a written direction
|
|
893
|
+
* (`controls.instruction`); any other reports `direction` ignored.
|
|
894
|
+
*/
|
|
895
|
+
prompts: {
|
|
896
|
+
kind: 'prompts',
|
|
897
|
+
facet: 'prompts',
|
|
898
|
+
description: 'How the voice is directed โ sent only to a voice model that takes written direction.',
|
|
899
|
+
fields: {
|
|
900
|
+
direction: { type: 'text' },
|
|
901
|
+
},
|
|
902
|
+
},
|
|
903
|
+
/** ๐ง The **line template**: renders one group of cues into the text of one call. */
|
|
871
904
|
template: {
|
|
872
905
|
kind: 'template',
|
|
873
906
|
engine: jinja2.id,
|
|
874
907
|
facet: 'templates',
|
|
908
|
+
variables: SPOKEN_LINE_TEMPLATE_SCOPE,
|
|
909
|
+
description: 'Which parts of a line are spoken, and how each one reads. Whole line, Dialogue only and Narration only ship.',
|
|
910
|
+
},
|
|
911
|
+
/** ๐ง How an inflection reads as a direction and as an inline tag (ยง11.3). */
|
|
912
|
+
variables: {
|
|
913
|
+
kind: 'variables',
|
|
914
|
+
facet: 'variables',
|
|
915
|
+
description: 'How an inflection reads โ as a sentence directing the voice, and as an inline tag.',
|
|
916
|
+
renders: {
|
|
917
|
+
inflectionSentence: 'core:var/inflection-sentence@1',
|
|
918
|
+
inflectionTag: 'core:var/inflection-tag@1',
|
|
919
|
+
},
|
|
875
920
|
},
|
|
921
|
+
/**
|
|
922
|
+
* No `facet`, like the image step's: both decide how the audio is
|
|
923
|
+
* made and joined, not what the voice is asked for.
|
|
924
|
+
*/
|
|
876
925
|
params: {
|
|
877
926
|
kind: 'parameters',
|
|
878
|
-
|
|
879
|
-
|
|
927
|
+
schema: {
|
|
928
|
+
streaming: {
|
|
929
|
+
type: 'boolean',
|
|
930
|
+
default: false,
|
|
931
|
+
label: { en: 'Stream speech' },
|
|
932
|
+
description: {
|
|
933
|
+
en: 'Hand each part of the line on as it is made, where the voice model can (audio_streaming). Off makes the whole line first.',
|
|
934
|
+
},
|
|
935
|
+
},
|
|
936
|
+
gapMs: {
|
|
937
|
+
type: 'number',
|
|
938
|
+
default: 200,
|
|
939
|
+
min: 0,
|
|
940
|
+
max: 2000,
|
|
941
|
+
label: { en: 'Pause between parts (ms)' },
|
|
942
|
+
description: {
|
|
943
|
+
en: 'The silence put between two parts of a line spoken in separate calls โ a change of voice or of inflection.',
|
|
944
|
+
},
|
|
945
|
+
},
|
|
946
|
+
},
|
|
947
|
+
},
|
|
948
|
+
},
|
|
949
|
+
ports: {
|
|
950
|
+
in: {
|
|
951
|
+
/** ๐ง The script โ `Cue[]` from `core:task/cue-lines@1`. */
|
|
952
|
+
cues: S.cues,
|
|
953
|
+
/** Whose line it is: `speaker` cues speak in this participant's voice. */
|
|
954
|
+
speaker: S.participantRef,
|
|
955
|
+
/** ISO 639-1. Absent: the voice's timbre language, then the session's, then the pub's. */
|
|
956
|
+
language: S.text,
|
|
957
|
+
/**
|
|
958
|
+
* โณ The one-release alias: a bare text, read as one cue in the
|
|
959
|
+
* speaker's voice when `cues` is not wired. Expires the release
|
|
960
|
+
* after speech ships.
|
|
961
|
+
*/
|
|
962
|
+
text: S.text,
|
|
963
|
+
},
|
|
964
|
+
out: {
|
|
965
|
+
main: S.audio,
|
|
966
|
+
audio: S.audio,
|
|
967
|
+
cueMap: S.cueMap,
|
|
968
|
+
spokenAs: S.spokenAs,
|
|
969
|
+
/** ๐ง `SpokenMeta` โ the record attach-audio keeps on the line. */
|
|
970
|
+
meta: S.spokenMeta,
|
|
880
971
|
},
|
|
881
972
|
},
|
|
882
|
-
ports: { in: { text: S.text }, out: { main: S.audio, audio: S.audio } },
|
|
883
973
|
}));
|
|
884
974
|
/**
|
|
885
975
|
* ๐ง **Transcribe audio** (O9, 2026-10-21) โ the explicit step that turns a
|
|
@@ -1378,7 +1468,9 @@ export const pickSprite = pin(describeOracleDefinition({
|
|
|
1378
1468
|
* The sprite set to choose within, when the spec knows it.
|
|
1379
1469
|
* Absent โ every core spec โ the set is decided from the
|
|
1380
1470
|
* speaker, in one order: the session's override, then the cast
|
|
1381
|
-
* member's set, then the card's default set
|
|
1471
|
+
* member's set, then the card's default set โ the card being
|
|
1472
|
+
* the cascade's (the member's own sets per its configuration,
|
|
1473
|
+
* else the card active on the timeline). A name the card
|
|
1382
1474
|
* has no set by falls to the default set and says so on
|
|
1383
1475
|
* `choices`, never silently.
|
|
1384
1476
|
*/
|
|
@@ -1391,6 +1483,10 @@ export const pickSprite = pin(describeOracleDefinition({
|
|
|
1391
1483
|
/**
|
|
1392
1484
|
* What the speaker could show, and how the set was decided
|
|
1393
1485
|
* (`decidedBy`, `missing`) โ for the receipt, never for the line.
|
|
1486
|
+
* ๐ง `castMemberId` names the speaker; the card the art comes
|
|
1487
|
+
* from cascades (the member's own sets per its configuration,
|
|
1488
|
+
* else the card active on the timeline), โณ `characterId`
|
|
1489
|
+
* (removed in S5) null when the member's own sets draw.
|
|
1394
1490
|
*/
|
|
1395
1491
|
choices: S.spriteChoices,
|
|
1396
1492
|
},
|