@glissade/narrate 0.13.0 → 0.14.0-pre.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/dist/index.d.ts CHANGED
@@ -170,6 +170,16 @@ interface NarrationAnchors {
170
170
  readonly totalDuration: number;
171
171
  /** '<id>.start' / '<id>.end' labels (segments + pauses) — merge into the timeline for studio visibility */
172
172
  labels(): Record<string, number>;
173
+ /**
174
+ * The locale id manifest for this narration — every addressable beat id
175
+ * (segments + pauses) under a locale tag. Feed it to
176
+ * `requireParity(...)` from `@glissade/core/i18n` to assert two locales'
177
+ * narration cover the SAME ids (the cross-language analogue of `require`).
178
+ */
179
+ idManifest(locale: string): {
180
+ locale: string;
181
+ ids: string[];
182
+ };
173
183
  /** narration clips on the existing AudioClip machinery; baseUrl prefixes each file */
174
184
  clips(baseUrl: string): AudioClip[];
175
185
  /** audio asset manifest entries keyed 'narration-<id>' */
package/dist/index.js CHANGED
@@ -58,6 +58,10 @@ function narration(timing) {
58
58
  }
59
59
  return out;
60
60
  },
61
+ idManifest: (locale) => ({
62
+ locale,
63
+ ids: [...byId.keys()]
64
+ }),
61
65
  clips: (baseUrl) => timing.segments.map((s) => ({
62
66
  asset: {
63
67
  kind: "audio",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissade/narrate",
3
- "version": "0.13.0",
3
+ "version": "0.14.0-pre.0",
4
4
  "description": "glissade narration + captions: TTS at prepare time (gs narrate), deterministic caching, narration-anchored timeline beats, and captions as plain tracks. Render stays offline.",
5
5
  "license": "Apache-2.0",
6
6
  "engines": {
@@ -22,8 +22,8 @@
22
22
  "dist"
23
23
  ],
24
24
  "dependencies": {
25
- "@glissade/core": "0.13.0",
26
- "@glissade/scene": "0.13.0"
25
+ "@glissade/core": "0.14.0-pre.0",
26
+ "@glissade/scene": "0.14.0-pre.0"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "kokoro-js": "^1.2.0"