@vocasync/astro 2.0.0 β†’ 2.1.1

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/README.md CHANGED
@@ -8,7 +8,7 @@ Turn your Astro blog posts into narrated audio with word-level synchronization.
8
8
  - 🎯 **Word-Level Alignment** - Precise timestamps for every word, powered by forced alignment
9
9
  - ✨ **Live Word Highlighting** - Karaoke-style highlighting that follows along with playback
10
10
  - πŸŽ›οΈ **Built-in Audio Player** - Keyboard shortcuts, a floating dock, and controls you can reorder or replace
11
- - 🌍 **14 Languages** - Global reach with support for 14 languages
11
+ - 🌍 **57 languages narrated, 13 highlighted** - Skip alignment with `align: false` and any language the voices speak is available
12
12
  - 🎨 **Themeable down to the pixel** - Four seeds carry a whole theme; every rule loses to yours, so no `!important`
13
13
  - πŸŒ— **Dark mode that follows yours** - The OS preference plus `.dark`, `[data-theme]` and `[data-mode]`, with no configuration
14
14
  - 🈯 **Translatable** - Every visible string and accessible label is overridable
@@ -262,6 +262,10 @@ export default {
262
262
  concurrency: 3, // Parallel jobs (1-10)
263
263
  force: false, // Force reprocessing
264
264
  },
265
+
266
+ // Produce word-level timings. Off means narration only: cheaper, and any of the 57
267
+ // synthesis languages rather than the 13 that can be aligned.
268
+ align: true,
265
269
  };
266
270
  ```
267
271
 
@@ -281,7 +285,19 @@ Bonjour…
281
285
  ```
282
286
 
283
287
  Invalid values are skipped with a warning. Changing any of these re-syncs the post
284
- (the change-detection hash includes the resolved voice/language/format).
288
+ (the change-detection hash includes the resolved voice, language, format and
289
+ `align`).
290
+
291
+ `align: false` in a post's frontmatter narrates that post without word timings, which
292
+ also lets it use a language outside the aligned set:
293
+
294
+ ```yaml
295
+ ---
296
+ title: "ประกาศ"
297
+ language: th
298
+ align: false
299
+ ---
300
+ ```
285
301
 
286
302
  ### Rehype Plugin Options
287
303
 
@@ -582,19 +598,94 @@ skip `player.css`:
582
598
 
583
599
  ## Supported Languages
584
600
 
585
- VocaSync supports 14 languages where both speech synthesis and forced alignment are available. Languages use ISO 639-1 codes:
601
+ There are two lists, and which one applies depends on whether you want word
602
+ highlighting.
603
+
604
+ **Narration** works in all 57 languages the synthesis voices speak.
586
605
 
587
- | Code | Language | Code | Language |
588
- |------|----------|------|----------|
589
- | `zh` | Chinese | `pl` | Polish |
590
- | `cs` | Czech | `pt` | Portuguese |
591
- | `en` | English | `ru` | Russian |
592
- | `fr` | French | `es` | Spanish |
593
- | `de` | German | `sv` | Swedish |
594
- | `ja` | Japanese | `tr` | Turkish |
595
- | `ko` | Korean | `uk` | Ukrainian |
606
+ **Word highlighting and click-to-seek** need forced alignment, which covers 13 of them.
607
+ Alignment is what produces the per-word timings; without it there is nothing to
608
+ highlight or seek to.
596
609
 
597
- > **Note:** VocaSync requires both speech synthesis and word-level forced alignment for each language. While synthesis (powered by OpenAI TTS) supports 61 languages, alignment (powered by Montreal Forced Aligner) is available for a smaller set. The 14 languages listed above are where both capabilities overlap, and they match the platform's alignment-supported set.
610
+ So a post in Thai or Hindi can be narrated β€” it just cannot be highlighted:
611
+
612
+ ```javascript
613
+ // vocasync.config.mjs
614
+ export default {
615
+ collection: { name: "blog", path: "./src/content/blog" },
616
+ language: "th",
617
+ align: false, // narration only; skips alignment
618
+ };
619
+ ```
620
+
621
+ Set `align: false` in a single post's frontmatter to make the exception there instead.
622
+ Asking for a language that cannot align while `align` is on is rejected before any
623
+ synthesis is paid for, with a message naming the language and what to do about it.
624
+
625
+ | Code | Language | Highlighting |
626
+ |------|----------|--------------|
627
+ | `af` | Afrikaans | β€” |
628
+ | `ar` | Arabic | β€” |
629
+ | `hy` | Armenian | β€” |
630
+ | `az` | Azerbaijani | β€” |
631
+ | `be` | Belarusian | β€” |
632
+ | `bs` | Bosnian | β€” |
633
+ | `bg` | Bulgarian | β€” |
634
+ | `ca` | Catalan | β€” |
635
+ | `zh` | Chinese | βœ… |
636
+ | `hr` | Croatian | β€” |
637
+ | `cs` | Czech | βœ… |
638
+ | `da` | Danish | β€” |
639
+ | `nl` | Dutch | β€” |
640
+ | `en` | English | βœ… |
641
+ | `et` | Estonian | β€” |
642
+ | `fi` | Finnish | β€” |
643
+ | `fr` | French | βœ… |
644
+ | `gl` | Galician | β€” |
645
+ | `de` | German | βœ… |
646
+ | `el` | Greek | β€” |
647
+ | `he` | Hebrew | β€” |
648
+ | `hi` | Hindi | β€” |
649
+ | `hu` | Hungarian | β€” |
650
+ | `is` | Icelandic | β€” |
651
+ | `id` | Indonesian | β€” |
652
+ | `it` | Italian | β€” |
653
+ | `ja` | Japanese | βœ… |
654
+ | `kn` | Kannada | β€” |
655
+ | `kk` | Kazakh | β€” |
656
+ | `ko` | Korean | β€” |
657
+ | `lv` | Latvian | β€” |
658
+ | `lt` | Lithuanian | β€” |
659
+ | `mk` | Macedonian | β€” |
660
+ | `ms` | Malay | β€” |
661
+ | `mi` | Maori | β€” |
662
+ | `mr` | Marathi | β€” |
663
+ | `ne` | Nepali | β€” |
664
+ | `no` | Norwegian | β€” |
665
+ | `fa` | Persian | β€” |
666
+ | `pl` | Polish | βœ… |
667
+ | `pt` | Portuguese | βœ… |
668
+ | `ro` | Romanian | β€” |
669
+ | `ru` | Russian | βœ… |
670
+ | `sr` | Serbian | β€” |
671
+ | `sk` | Slovak | β€” |
672
+ | `sl` | Slovenian | β€” |
673
+ | `es` | Spanish | βœ… |
674
+ | `sw` | Swahili | β€” |
675
+ | `sv` | Swedish | βœ… |
676
+ | `tl` | Tagalog | β€” |
677
+ | `ta` | Tamil | β€” |
678
+ | `th` | Thai | β€” |
679
+ | `tr` | Turkish | βœ… |
680
+ | `uk` | Ukrainian | βœ… |
681
+ | `ur` | Urdu | β€” |
682
+ | `vi` | Vietnamese | β€” |
683
+ | `cy` | Welsh | β€” |
684
+
685
+ > **Korean** was withdrawn from alignment in September 2026. It still synthesises;
686
+ > pass `align: false` to use it.
687
+
688
+ Turning alignment off also costs less, since it is a second job on top of synthesis.
598
689
 
599
690
  ## Math Support
600
691
 
@@ -1091,6 +1182,19 @@ Create a `vocasync.config.mjs` file in your project root.
1091
1182
  spans are absent the rehype plugin did not run; if they are present but nothing
1092
1183
  lights up, the audio map and the page disagree β€” see below.
1093
1184
 
1185
+ ### "cannot be force-aligned"
1186
+
1187
+ The language can be narrated but has no forced-alignment model, so it cannot carry the
1188
+ word timings highlighting needs. Set `align: false` in `vocasync.config.mjs`, or in a
1189
+ single post's frontmatter, to narrate it without highlighting. See
1190
+ [Supported Languages](#supported-languages) for which is which.
1191
+
1192
+ ### A post has audio but no highlighting
1193
+
1194
+ Check whether it was synthesised with `align: false` β€” deliberately unaligned posts
1195
+ carry no word timings, so the player omits the highlighting toggle rather than showing
1196
+ an inert control, and the rehype plugin does not wrap its words.
1197
+
1094
1198
  ### Highlighting drifts partway through a post
1095
1199
 
1096
1200
  The audio map is stale. `data-i` indices are assigned at build time against the word
@@ -46,6 +46,13 @@ const {
46
46
  const s = { ...defaultStrings, ...strings };
47
47
 
48
48
  const { enabled: highlightEnabled = true, trailLength = 4, clickToSeek = true } = highlight;
49
+
50
+ // A post synthesised without alignment carries no word timings, so highlighting and
51
+ // click-to-seek have nothing to act on. Rendering the toggle anyway would put an inert
52
+ // control in front of the reader.
53
+ const hasTimings = (audioEntry?.words?.length ?? 0) > 0;
54
+ const highlightingAvailable = highlightEnabled && hasTimings;
55
+ const resolvedControls = hasTimings ? controls : controls.filter((c) => c !== "highlight");
49
56
  const { enabled: dockEnabled = true } = dock;
50
57
 
51
58
  const playerId = id ?? `vocasync-player-${slug.replace(/[^a-z0-9]/gi, "-")}`;
@@ -65,8 +72,8 @@ const config = {
65
72
  options: {
66
73
  articleSelector,
67
74
  trailLength,
68
- highlighting: highlightEnabled,
69
- clickToSeek,
75
+ highlighting: highlightingAvailable,
76
+ clickToSeek: clickToSeek && hasTimings,
70
77
  autoScroll,
71
78
  dock: dockEnabled,
72
79
  exclusive,
@@ -133,7 +140,7 @@ const configJson = JSON.stringify(config).replace(/</g, "\\u003c");
133
140
  </div>
134
141
 
135
142
  <div class="vocasync-player__controls" data-state="ready" hidden>
136
- {controls.map((control) => (
143
+ {resolvedControls.map((control) => (
137
144
  <Fragment>
138
145
  {control === "play" && (
139
146
  <button
@@ -1,3 +1,4 @@
1
+ export { ALIGNMENT_LOCALES, canAlign, LANGUAGE_NAMES, SYNTHESIS_LANGUAGES, toAlignmentLocale, } from "./languages.js";
1
2
  export { loadVocaSyncConfig } from "./loader.js";
2
3
  export type { CollectionConfig, Format, Language, MathConfig, MathStyle, OutputConfig, ProcessingConfig, Quality, SynthesisConfig, VocaSyncConfig, VocaSyncUserConfig, Voice, } from "./schema.js";
3
4
  export { CollectionConfigSchema, defaultConfig, FormatSchema, LanguageSchema, MathConfigSchema, MathStyleSchema, OutputConfigSchema, ProcessingConfigSchema, QualitySchema, SynthesisConfigSchema, VocaSyncConfigSchema, VoiceSchema, validateConfig, } from "./schema.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEjD,YAAY,EACV,gBAAgB,EAChB,MAAM,EACN,QAAQ,EACR,UAAU,EACV,SAAS,EACT,YAAY,EACZ,gBAAgB,EAChB,OAAO,EACP,eAAe,EACf,cAAc,EACd,kBAAkB,EAClB,KAAK,GACN,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,sBAAsB,EACtB,aAAa,EACb,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,sBAAsB,EACtB,aAAa,EACb,qBAAqB,EACrB,oBAAoB,EACpB,WAAW,EACX,cAAc,GACf,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,QAAQ,EACR,cAAc,EACd,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,YAAY,EACV,gBAAgB,EAChB,MAAM,EACN,QAAQ,EACR,UAAU,EACV,SAAS,EACT,YAAY,EACZ,gBAAgB,EAChB,OAAO,EACP,eAAe,EACf,cAAc,EACd,kBAAkB,EAClB,KAAK,GACN,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,sBAAsB,EACtB,aAAa,EACb,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,sBAAsB,EACtB,aAAa,EACb,qBAAqB,EACrB,oBAAoB,EACpB,WAAW,EACX,cAAc,GACf,MAAM,aAAa,CAAC"}
@@ -1,3 +1,4 @@
1
+ export { ALIGNMENT_LOCALES, canAlign, LANGUAGE_NAMES, SYNTHESIS_LANGUAGES, toAlignmentLocale, } from "./languages.js";
1
2
  export { loadVocaSyncConfig } from "./loader.js";
2
3
  export { CollectionConfigSchema, defaultConfig, FormatSchema, LanguageSchema, MathConfigSchema, MathStyleSchema, OutputConfigSchema, ProcessingConfigSchema, QualitySchema, SynthesisConfigSchema, VocaSyncConfigSchema, VoiceSchema, validateConfig, } from "./schema.js";
3
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAgBjD,OAAO,EACL,sBAAsB,EACtB,aAAa,EACb,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,sBAAsB,EACtB,aAAa,EACb,qBAAqB,EACrB,oBAAoB,EACpB,WAAW,EACX,cAAc,GACf,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,QAAQ,EACR,cAAc,EACd,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAejD,OAAO,EACL,sBAAsB,EACtB,aAAa,EACb,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,sBAAsB,EACtB,aAAa,EACb,qBAAqB,EACrB,oBAAoB,EACpB,WAAW,EACX,cAAc,GACf,MAAM,aAAa,CAAC"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Language support, which is not one list but two.
3
+ *
4
+ * Speech synthesis covers 57 languages. Forced alignment -- the word-level timing
5
+ * that drives highlighting and click-to-seek -- covers far fewer. A post that needs
6
+ * highlighting is therefore limited to the intersection; a post synthesised without
7
+ * alignment is limited only by the voice.
8
+ *
9
+ * Both lists mirror the enums published in the VocaSync OpenAPI document. Korean was
10
+ * withdrawn from alignment in September 2026 and remains available for synthesis.
11
+ */
12
+ /** Every language the synthesis voices can speak, ISO 639-1. */
13
+ export declare const SYNTHESIS_LANGUAGES: readonly ["af", "ar", "hy", "az", "be", "bs", "bg", "ca", "zh", "hr", "cs", "da", "nl", "en", "et", "fi", "fr", "gl", "de", "el", "he", "hi", "hu", "is", "id", "it", "ja", "kn", "kk", "ko", "lv", "lt", "mk", "ms", "mr", "mi", "ne", "no", "fa", "pl", "pt", "ro", "ru", "sr", "sk", "sl", "es", "sw", "sv", "tl", "ta", "th", "tr", "uk", "ur", "vi", "cy"];
14
+ /**
15
+ * Synthesis languages that can also be force-aligned, mapped to the locale the
16
+ * alignment API expects. A language absent from here can still be synthesised --
17
+ * it simply cannot carry word timings.
18
+ */
19
+ export declare const ALIGNMENT_LOCALES: Readonly<Record<string, string>>;
20
+ /** Human-readable names, for error messages and docs. */
21
+ export declare const LANGUAGE_NAMES: Readonly<Record<string, string>>;
22
+ /** True when a language can carry word-level timings. */
23
+ export declare function canAlign(language: string): boolean;
24
+ /**
25
+ * The locale the alignment API expects, or null when the language cannot align.
26
+ *
27
+ * Returning null rather than defaulting matters: the previous implementation fell
28
+ * back to `en-US` for anything unrecognised, so a language outside the aligned set
29
+ * would have been aligned against an English acoustic model -- producing timings
30
+ * that are confidently wrong rather than an error.
31
+ */
32
+ export declare function toAlignmentLocale(language: string): string | null;
33
+ //# sourceMappingURL=languages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"languages.d.ts","sourceRoot":"","sources":["../../src/config/languages.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,gEAAgE;AAChE,eAAO,MAAM,mBAAmB,YAC9B,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,IAAI,CACI,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAc9D,CAAC;AAEF,yDAAyD;AACzD,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA0D3D,CAAC;AAEF,yDAAyD;AACzD,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAElD;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAEjE"}
@@ -0,0 +1,167 @@
1
+ /**
2
+ * Language support, which is not one list but two.
3
+ *
4
+ * Speech synthesis covers 57 languages. Forced alignment -- the word-level timing
5
+ * that drives highlighting and click-to-seek -- covers far fewer. A post that needs
6
+ * highlighting is therefore limited to the intersection; a post synthesised without
7
+ * alignment is limited only by the voice.
8
+ *
9
+ * Both lists mirror the enums published in the VocaSync OpenAPI document. Korean was
10
+ * withdrawn from alignment in September 2026 and remains available for synthesis.
11
+ */
12
+ /** Every language the synthesis voices can speak, ISO 639-1. */
13
+ export const SYNTHESIS_LANGUAGES = [
14
+ "af", // Afrikaans
15
+ "ar", // Arabic
16
+ "hy", // Armenian
17
+ "az", // Azerbaijani
18
+ "be", // Belarusian
19
+ "bs", // Bosnian
20
+ "bg", // Bulgarian
21
+ "ca", // Catalan
22
+ "zh", // Chinese
23
+ "hr", // Croatian
24
+ "cs", // Czech
25
+ "da", // Danish
26
+ "nl", // Dutch
27
+ "en", // English
28
+ "et", // Estonian
29
+ "fi", // Finnish
30
+ "fr", // French
31
+ "gl", // Galician
32
+ "de", // German
33
+ "el", // Greek
34
+ "he", // Hebrew
35
+ "hi", // Hindi
36
+ "hu", // Hungarian
37
+ "is", // Icelandic
38
+ "id", // Indonesian
39
+ "it", // Italian
40
+ "ja", // Japanese
41
+ "kn", // Kannada
42
+ "kk", // Kazakh
43
+ "ko", // Korean
44
+ "lv", // Latvian
45
+ "lt", // Lithuanian
46
+ "mk", // Macedonian
47
+ "ms", // Malay
48
+ "mr", // Marathi
49
+ "mi", // Maori
50
+ "ne", // Nepali
51
+ "no", // Norwegian
52
+ "fa", // Persian
53
+ "pl", // Polish
54
+ "pt", // Portuguese
55
+ "ro", // Romanian
56
+ "ru", // Russian
57
+ "sr", // Serbian
58
+ "sk", // Slovak
59
+ "sl", // Slovenian
60
+ "es", // Spanish
61
+ "sw", // Swahili
62
+ "sv", // Swedish
63
+ "tl", // Tagalog
64
+ "ta", // Tamil
65
+ "th", // Thai
66
+ "tr", // Turkish
67
+ "uk", // Ukrainian
68
+ "ur", // Urdu
69
+ "vi", // Vietnamese
70
+ "cy", // Welsh
71
+ ];
72
+ /**
73
+ * Synthesis languages that can also be force-aligned, mapped to the locale the
74
+ * alignment API expects. A language absent from here can still be synthesised --
75
+ * it simply cannot carry word timings.
76
+ */
77
+ export const ALIGNMENT_LOCALES = {
78
+ en: "en-US", // English
79
+ fr: "fr", // French
80
+ de: "de", // German
81
+ es: "es", // Spanish
82
+ pt: "pt-PT", // Portuguese
83
+ sv: "sv", // Swedish
84
+ cs: "cs", // Czech
85
+ pl: "pl", // Polish
86
+ tr: "tr", // Turkish
87
+ ru: "ru", // Russian
88
+ uk: "uk", // Ukrainian
89
+ ja: "ja", // Japanese
90
+ zh: "zh-CN", // Chinese
91
+ };
92
+ /** Human-readable names, for error messages and docs. */
93
+ export const LANGUAGE_NAMES = {
94
+ af: "Afrikaans",
95
+ ar: "Arabic",
96
+ hy: "Armenian",
97
+ az: "Azerbaijani",
98
+ be: "Belarusian",
99
+ bs: "Bosnian",
100
+ bg: "Bulgarian",
101
+ ca: "Catalan",
102
+ zh: "Chinese",
103
+ hr: "Croatian",
104
+ cs: "Czech",
105
+ da: "Danish",
106
+ nl: "Dutch",
107
+ en: "English",
108
+ et: "Estonian",
109
+ fi: "Finnish",
110
+ fr: "French",
111
+ gl: "Galician",
112
+ de: "German",
113
+ el: "Greek",
114
+ he: "Hebrew",
115
+ hi: "Hindi",
116
+ hu: "Hungarian",
117
+ is: "Icelandic",
118
+ id: "Indonesian",
119
+ it: "Italian",
120
+ ja: "Japanese",
121
+ kn: "Kannada",
122
+ kk: "Kazakh",
123
+ ko: "Korean",
124
+ lv: "Latvian",
125
+ lt: "Lithuanian",
126
+ mk: "Macedonian",
127
+ ms: "Malay",
128
+ mr: "Marathi",
129
+ mi: "Maori",
130
+ ne: "Nepali",
131
+ no: "Norwegian",
132
+ fa: "Persian",
133
+ pl: "Polish",
134
+ pt: "Portuguese",
135
+ ro: "Romanian",
136
+ ru: "Russian",
137
+ sr: "Serbian",
138
+ sk: "Slovak",
139
+ sl: "Slovenian",
140
+ es: "Spanish",
141
+ sw: "Swahili",
142
+ sv: "Swedish",
143
+ tl: "Tagalog",
144
+ ta: "Tamil",
145
+ th: "Thai",
146
+ tr: "Turkish",
147
+ uk: "Ukrainian",
148
+ ur: "Urdu",
149
+ vi: "Vietnamese",
150
+ cy: "Welsh",
151
+ };
152
+ /** True when a language can carry word-level timings. */
153
+ export function canAlign(language) {
154
+ return Object.hasOwn(ALIGNMENT_LOCALES, language);
155
+ }
156
+ /**
157
+ * The locale the alignment API expects, or null when the language cannot align.
158
+ *
159
+ * Returning null rather than defaulting matters: the previous implementation fell
160
+ * back to `en-US` for anything unrecognised, so a language outside the aligned set
161
+ * would have been aligned against an English acoustic model -- producing timings
162
+ * that are confidently wrong rather than an error.
163
+ */
164
+ export function toAlignmentLocale(language) {
165
+ return ALIGNMENT_LOCALES[language] ?? null;
166
+ }
167
+ //# sourceMappingURL=languages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"languages.js","sourceRoot":"","sources":["../../src/config/languages.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,gEAAgE;AAChE,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE,SAAS;IACf,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE,aAAa;IACnB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,WAAW;IACjB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AAY;IAChB,EAAE,EAAE,YAAY;IAChB,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,WAAW;IACf,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,YAAY;IAChB,EAAE,EAAE,UAAU;IACd,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,WAAW;IACf,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,WAAW;IACf,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,YAAY;IAChB,EAAE,EAAE,OAAO;CACZ,CAAC;AAEF,yDAAyD;AACzD,MAAM,UAAU,QAAQ,CAAC,QAAgB;IACvC,OAAO,MAAM,CAAC,MAAM,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CAAC;AACpD,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,iBAAiB,CAAC,QAAgB;IAChD,OAAO,iBAAiB,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC;AAC7C,CAAC"}
@@ -35,24 +35,70 @@ export declare const FormatSchema: z.ZodEnum<{
35
35
  }>;
36
36
  export type Format = z.infer<typeof FormatSchema>;
37
37
  /**
38
- * Supported languages for synthesis + alignment
39
- * Uses short ISO 639-1 codes as expected by the VocaSync API
40
- * Only languages where both OpenAI TTS synthesis and MFA forced alignment are available
38
+ * Languages the synthesis voices can speak (ISO 639-1).
39
+ *
40
+ * Wider than the set that can be force-aligned. A post that needs word highlighting is
41
+ * additionally constrained by `ALIGNMENT_LOCALES`; one synthesised with `align: false`
42
+ * is not. `validateConfig` rejects the impossible combination rather than letting a
43
+ * sync pay for synthesis and then fail at the alignment step.
41
44
  */
42
45
  export declare const LanguageSchema: z.ZodEnum<{
46
+ af: "af";
47
+ ar: "ar";
48
+ az: "az";
49
+ be: "be";
50
+ bg: "bg";
51
+ bs: "bs";
52
+ ca: "ca";
43
53
  cs: "cs";
54
+ cy: "cy";
55
+ da: "da";
44
56
  de: "de";
57
+ el: "el";
45
58
  en: "en";
46
59
  es: "es";
60
+ et: "et";
61
+ fa: "fa";
62
+ fi: "fi";
47
63
  fr: "fr";
64
+ gl: "gl";
65
+ he: "he";
66
+ hi: "hi";
67
+ hr: "hr";
68
+ hu: "hu";
69
+ hy: "hy";
70
+ id: "id";
71
+ is: "is";
72
+ it: "it";
48
73
  ja: "ja";
74
+ kk: "kk";
75
+ kn: "kn";
49
76
  ko: "ko";
77
+ lt: "lt";
78
+ lv: "lv";
79
+ mi: "mi";
80
+ mk: "mk";
81
+ mr: "mr";
82
+ ms: "ms";
83
+ ne: "ne";
84
+ nl: "nl";
85
+ no: "no";
50
86
  pl: "pl";
51
87
  pt: "pt";
88
+ ro: "ro";
52
89
  ru: "ru";
90
+ sk: "sk";
91
+ sl: "sl";
92
+ sr: "sr";
53
93
  sv: "sv";
94
+ sw: "sw";
95
+ ta: "ta";
96
+ th: "th";
97
+ tl: "tl";
54
98
  tr: "tr";
55
99
  uk: "uk";
100
+ ur: "ur";
101
+ vi: "vi";
56
102
  zh: "zh";
57
103
  }>;
58
104
  export type Language = z.infer<typeof LanguageSchema>;
@@ -137,19 +183,62 @@ export declare const VocaSyncConfigSchema: z.ZodObject<{
137
183
  slugField: z.ZodDefault<z.ZodString>;
138
184
  }, z.core.$strip>;
139
185
  language: z.ZodDefault<z.ZodEnum<{
186
+ af: "af";
187
+ ar: "ar";
188
+ az: "az";
189
+ be: "be";
190
+ bg: "bg";
191
+ bs: "bs";
192
+ ca: "ca";
140
193
  cs: "cs";
194
+ cy: "cy";
195
+ da: "da";
141
196
  de: "de";
197
+ el: "el";
142
198
  en: "en";
143
199
  es: "es";
200
+ et: "et";
201
+ fa: "fa";
202
+ fi: "fi";
144
203
  fr: "fr";
204
+ gl: "gl";
205
+ he: "he";
206
+ hi: "hi";
207
+ hr: "hr";
208
+ hu: "hu";
209
+ hy: "hy";
210
+ id: "id";
211
+ is: "is";
212
+ it: "it";
145
213
  ja: "ja";
214
+ kk: "kk";
215
+ kn: "kn";
146
216
  ko: "ko";
217
+ lt: "lt";
218
+ lv: "lv";
219
+ mi: "mi";
220
+ mk: "mk";
221
+ mr: "mr";
222
+ ms: "ms";
223
+ ne: "ne";
224
+ nl: "nl";
225
+ no: "no";
147
226
  pl: "pl";
148
227
  pt: "pt";
228
+ ro: "ro";
149
229
  ru: "ru";
230
+ sk: "sk";
231
+ sl: "sl";
232
+ sr: "sr";
150
233
  sv: "sv";
234
+ sw: "sw";
235
+ ta: "ta";
236
+ th: "th";
237
+ tl: "tl";
151
238
  tr: "tr";
152
239
  uk: "uk";
240
+ ur: "ur";
241
+ vi: "vi";
153
242
  zh: "zh";
154
243
  }>>;
155
244
  synthesis: z.ZodPrefault<z.ZodObject<{
@@ -186,6 +275,7 @@ export declare const VocaSyncConfigSchema: z.ZodObject<{
186
275
  output: z.ZodPrefault<z.ZodObject<{
187
276
  audioMapPath: z.ZodDefault<z.ZodString>;
188
277
  }, z.core.$strip>>;
278
+ align: z.ZodDefault<z.ZodBoolean>;
189
279
  frontmatterField: z.ZodOptional<z.ZodString>;
190
280
  processing: z.ZodPrefault<z.ZodObject<{
191
281
  concurrency: z.ZodDefault<z.ZodNumber>;
@@ -225,6 +315,14 @@ export type VocaSyncUserConfig = {
225
315
  * Validate and normalize user configuration
226
316
  */
227
317
  export declare function validateConfig(userConfig: VocaSyncUserConfig): VocaSyncConfig;
318
+ /**
319
+ * Reject a language that cannot be aligned while alignment is requested.
320
+ *
321
+ * Caught here rather than at sync time because the failure would otherwise arrive
322
+ * after synthesis has already been paid for, as a rejection from the alignment
323
+ * endpoint that says nothing about how to proceed.
324
+ */
325
+ export declare function assertLanguageSupportsAlignment(language: string, align: boolean): void;
228
326
  /**
229
327
  * Default configuration values
230
328
  */
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/config/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;EAUtB,CAAC;AACH,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEhD;;GAEG;AACH,eAAO,MAAM,aAAa;;;EAAuB,CAAC;AAClD,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD;;;GAGG;AACH,eAAO,MAAM,YAAY;;;;;;EAAgD,CAAC;AAC1E,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAElD;;;;GAIG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;EAezB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD;;GAEG;AACH,eAAO,MAAM,eAAe;;;EAAsC,CAAC;AACnE,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;iBAOjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;iBAOhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;i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