@glissade/narrate 0.12.1 → 0.13.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/providers.js CHANGED
@@ -332,8 +332,9 @@ function kokoroProvider(opts = {}) {
332
332
  return Promise.resolve(`kokoro-js ${version} ${basename(modelId)} dtype=${dtype}`);
333
333
  },
334
334
  synthesize: async (req) => {
335
- const tts = await getModel();
336
335
  const voice = req.voice ?? opts.voice ?? KOKORO_DEFAULT_VOICE;
336
+ if (voice.startsWith("zf_") || voice.startsWith("zm_")) throw new NarrationError("kokoro Chinese voices (z*) need misaki[zh] g2p (pinyin+jieba), which is not wired — kokoro-js routes zh through espeak-ng cmn (mismatched phonemes → garbled). Use --provider piper for Chinese. (tracked: card 24vKUw2HVC6D)");
337
+ const tts = await getModel();
337
338
  const genOpts = req.rate !== void 0 && req.rate > 0 ? {
338
339
  voice,
339
340
  speed: req.rate
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissade/narrate",
3
- "version": "0.12.1",
3
+ "version": "0.13.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.12.1",
26
- "@glissade/scene": "0.12.1"
25
+ "@glissade/core": "0.13.0-pre.0",
26
+ "@glissade/scene": "0.13.0-pre.0"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "kokoro-js": "^1.2.0"