@vocasync/astro 0.1.9 → 1.0.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.
Files changed (78) hide show
  1. package/README.md +77 -41
  2. package/dist/api/client.d.ts +63 -50
  3. package/dist/api/client.d.ts.map +1 -1
  4. package/dist/api/client.js +132 -145
  5. package/dist/api/client.js.map +1 -1
  6. package/dist/api/index.d.ts +1 -1
  7. package/dist/api/index.d.ts.map +1 -1
  8. package/dist/api/index.js +1 -1
  9. package/dist/api/index.js.map +1 -1
  10. package/dist/cli.js +7 -7
  11. package/dist/cli.js.map +1 -1
  12. package/dist/components/AudioPlayer.astro +136 -137
  13. package/dist/config/schema.d.ts +21 -20
  14. package/dist/config/schema.d.ts.map +1 -1
  15. package/dist/config/schema.js +15 -4
  16. package/dist/config/schema.js.map +1 -1
  17. package/dist/core/audio-map.js +1 -1
  18. package/dist/core/speech-builder.d.ts +10 -7
  19. package/dist/core/speech-builder.d.ts.map +1 -1
  20. package/dist/core/speech-builder.js +73 -168
  21. package/dist/core/speech-builder.js.map +1 -1
  22. package/dist/core/spoken-form.d.ts +52 -0
  23. package/dist/core/spoken-form.d.ts.map +1 -0
  24. package/dist/core/spoken-form.js +279 -0
  25. package/dist/core/spoken-form.js.map +1 -0
  26. package/dist/lib/latex-to-speech/index.d.ts +9 -2
  27. package/dist/lib/latex-to-speech/index.d.ts.map +1 -1
  28. package/dist/lib/latex-to-speech/index.js +20 -22
  29. package/dist/lib/latex-to-speech/index.js.map +1 -1
  30. package/dist/lib/latex-to-speech/speak.d.ts +13 -0
  31. package/dist/lib/latex-to-speech/speak.d.ts.map +1 -0
  32. package/dist/lib/latex-to-speech/speak.js +47 -0
  33. package/dist/lib/latex-to-speech/speak.js.map +1 -0
  34. package/dist/rehype/audio-words.d.ts +14 -24
  35. package/dist/rehype/audio-words.d.ts.map +1 -1
  36. package/dist/rehype/audio-words.js +131 -252
  37. package/dist/rehype/audio-words.js.map +1 -1
  38. package/dist/rehype/index.d.ts +1 -2
  39. package/dist/rehype/index.d.ts.map +1 -1
  40. package/dist/rehype/index.js +0 -1
  41. package/dist/rehype/index.js.map +1 -1
  42. package/dist/rehype/rehype-math-speech.d.ts +26 -10
  43. package/dist/rehype/rehype-math-speech.d.ts.map +1 -1
  44. package/dist/rehype/rehype-math-speech.js +59 -92
  45. package/dist/rehype/rehype-math-speech.js.map +1 -1
  46. package/dist/rehype/shared.d.ts +9 -0
  47. package/dist/rehype/shared.d.ts.map +1 -0
  48. package/dist/rehype/shared.js +31 -0
  49. package/dist/rehype/shared.js.map +1 -0
  50. package/dist/sync/orchestrator.d.ts +4 -22
  51. package/dist/sync/orchestrator.d.ts.map +1 -1
  52. package/dist/sync/orchestrator.js +123 -123
  53. package/dist/sync/orchestrator.js.map +1 -1
  54. package/dist/types/index.d.ts +82 -46
  55. package/dist/types/index.d.ts.map +1 -1
  56. package/package.json +14 -11
  57. package/src/api/client.ts +175 -190
  58. package/src/api/index.ts +8 -1
  59. package/src/cli.ts +7 -14
  60. package/src/components/AudioPlayer.astro +136 -137
  61. package/src/config/schema.ts +15 -4
  62. package/src/core/audio-map.ts +1 -1
  63. package/src/core/speech-builder.ts +75 -192
  64. package/src/core/spoken-form.ts +298 -0
  65. package/src/lib/latex-to-speech/index.ts +32 -22
  66. package/src/lib/latex-to-speech/speak.ts +55 -0
  67. package/src/rehype/audio-words.ts +145 -307
  68. package/src/rehype/index.ts +1 -2
  69. package/src/rehype/rehype-math-speech.ts +64 -117
  70. package/src/rehype/shared.ts +36 -0
  71. package/src/sync/orchestrator.ts +150 -157
  72. package/src/types/index.ts +85 -47
  73. package/src/types/modules.d.ts +5 -2
  74. package/dist/rehype/remark-math-speech.d.ts +0 -13
  75. package/dist/rehype/remark-math-speech.d.ts.map +0 -1
  76. package/dist/rehype/remark-math-speech.js +0 -26
  77. package/dist/rehype/remark-math-speech.js.map +0 -1
  78. package/src/rehype/remark-math-speech.ts +0 -31
package/README.md CHANGED
@@ -15,7 +15,7 @@ Turn your Astro blog posts into narrated audio with word-level synchronization.
15
15
 
16
16
  🔗 **[Live Demo](https://astro-integration-demo.vocasync.io)** — See the audio player and word highlighting in action
17
17
 
18
- 📂 **[Demo Source Code](https://github.com/sayedhfatimi/vocasync-astro-demo)** — Example implementation for reference
18
+ 📂 **[Demo Source Code](https://github.com/vocasync/astro-demo)** — Example implementation for reference
19
19
 
20
20
  ## Table of Contents
21
21
 
@@ -102,11 +102,11 @@ mkdir -p src/data
102
102
  npx vocasync sync
103
103
  ```
104
104
 
105
- This will:
106
- - Read all content from your collection
107
- - Submit synthesis jobs to VocaSync API
108
- - Wait for processing to complete
109
- - Save metadata to `audio-map.json`
105
+ This will, for each post:
106
+ - Read the content from your collection
107
+ - Submit a **synthesis** job, then an explicit **alignment** job (with the post's transcript)
108
+ - Wait for both to complete and fetch the word timings
109
+ - Save everything (URLs, keys, timings) to `audio-map.json`
110
110
 
111
111
  ### 6. Add the Player Component
112
112
 
@@ -176,9 +176,10 @@ export default {
176
176
 
177
177
  // Synthesis settings
178
178
  synthesis: {
179
- voice: "onyx", // alloy, echo, fable, onyx, nova, shimmer
179
+ // alloy, ash, coral, echo, fable, onyx, nova, sage, shimmer
180
+ voice: "onyx",
180
181
  quality: "sd", // sd (standard) or hd (high definition)
181
- format: "mp3", // mp3, opus, aac, flac
182
+ format: "mp3", // mp3, aac, opus, flac, wav (sent as outputFormat)
182
183
  },
183
184
 
184
185
  // LaTeX/math support
@@ -203,6 +204,24 @@ export default {
203
204
  };
204
205
  ```
205
206
 
207
+ ### Per-Post Overrides
208
+
209
+ Any post can override the global `voice`, `language`, or `format` from its frontmatter.
210
+ Values that aren't overridden fall back to `vocasync.config.mjs`:
211
+
212
+ ```markdown
213
+ ---
214
+ title: "Bienvenue"
215
+ language: fr
216
+ voice: shimmer
217
+ ---
218
+
219
+ Bonjour…
220
+ ```
221
+
222
+ Invalid values are skipped with a warning. Changing any of these re-syncs the post
223
+ (the change-detection hash includes the resolved voice/language/format).
224
+
206
225
  ### Rehype Plugin Options
207
226
 
208
227
  ```javascript
@@ -278,7 +297,7 @@ import AudioPlayer from "@vocasync/astro/components/AudioPlayer.astro";
278
297
  | Prop | Type | Default | Description |
279
298
  |------|------|---------|-------------|
280
299
  | `slug` | `string` | required | Post slug to lookup audio |
281
- | `audioEntry` | `object` | `undefined` | Audio entry from audio-map.json (audioUrl, publishableKey, etc.) |
300
+ | `audioEntry` | `object` | `undefined` | Audio entry from audio-map.json (`audioUrl`, `synthesisPublishableKey`, `words`, `duration`) |
282
301
  | `label` | `string` | `"Listen to this article"` | Accessible label |
283
302
  | `showPlaceholder` | `boolean` | `true` | Show message when no audio |
284
303
  | `class` | `string` | `""` | Additional CSS classes |
@@ -338,7 +357,7 @@ VocaSync supports 14 languages where both speech synthesis and forced alignment
338
357
  | `ja` | Japanese | `tr` | Turkish |
339
358
  | `ko` | Korean | `uk` | Ukrainian |
340
359
 
341
- > **Note:** VocaSync requires both speech synthesis and word-level forced alignment for each language. While synthesis (powered by OpenAI TTS) supports 57 languages, alignment (powered by Montreal Forced Aligner) is available for a smaller set. The 14 languages listed above are where both capabilities overlap.
360
+ > **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.
342
361
 
343
362
  ## Math Support
344
363
 
@@ -346,51 +365,65 @@ VocaSync supports LaTeX math equations using [Speech Rule Engine](https://github
346
365
 
347
366
  ### Installation
348
367
 
349
- Install the optional peer dependencies:
368
+ Install the math dependencies. `mathjax-full` powers both the spoken form and (via
369
+ `rehype-mathjax`) the visual rendering, so you don't also need KaTeX:
350
370
 
351
371
  ```bash
352
- npm install speech-rule-engine mathjax-full
372
+ bun add remark-math rehype-mathjax mathjax-full speech-rule-engine
353
373
  ```
354
374
 
355
375
  ### Setup
356
376
 
357
- For math to work with word highlighting, you need additional plugins that run in a specific order:
377
+ Math needs three plugins in a specific order:
358
378
 
359
379
  ```javascript
360
380
  // astro.config.mjs
361
381
  import { defineConfig } from "astro/config";
362
382
  import vocasync from "@vocasync/astro";
363
- import { rehypeAudioWords, rehypeMathSpeech, remarkMathSpeech } from "@vocasync/astro/rehype";
383
+ import { rehypeAudioWords, rehypeMathSpeech } from "@vocasync/astro/rehype";
364
384
  import remarkMath from "remark-math";
365
- import rehypeKatex from "rehype-katex"; // or rehype-mathjax
385
+ import rehypeMathjax from "rehype-mathjax";
386
+
387
+ const collectionName = "blog";
388
+ const audioMapPath = "src/data/audio-map.json";
366
389
 
367
390
  export default defineConfig({
368
391
  markdown: {
369
- remarkPlugins: [
370
- remarkMath, // 1. Parse LaTeX syntax
371
- remarkMathSpeech, // 2. Collect math expressions
372
- ],
392
+ remarkPlugins: [remarkMath], // parse $...$ / $$...$$
373
393
  rehypePlugins: [
374
- rehypeKatex, // 3. Render math to HTML
375
- rehypeMathSpeech, // 4. Inject hidden spoken text
376
- [rehypeAudioWords, { // 5. Wrap words with timing (runs last)
377
- collectionName: "blog",
378
- audioMapPath: "src/data/audio-map.json"
379
- }]
380
- ]
394
+ [rehypeMathSpeech, { collectionName, audioMapPath }], // attach spoken form (before render)
395
+ rehypeMathjax, // render math to HTML
396
+ [rehypeAudioWords, { collectionName, audioMapPath }], // wrap words + math units
397
+ ],
381
398
  },
382
399
  integrations: [vocasync()],
383
400
  });
384
401
  ```
385
402
 
386
- ### How It Works
403
+ Enable math in `vocasync.config.mjs` so `vocasync sync` generates the spoken forms:
387
404
 
388
- 1. **remarkMathSpeech** collects all LaTeX expressions during markdown parsing
389
- 2. **rehypeKatex/rehypeMathjax** renders the math to visual HTML
390
- 3. **rehypeMathSpeech** converts LaTeX to spoken text (e.g., `$x^2$` → "x squared") and injects it as hidden `<span>` elements
391
- 4. **rehypeAudioWords** wraps all text (including the spoken math) with timing spans
405
+ ```javascript
406
+ export default {
407
+ // ...
408
+ math: { enabled: true, style: "clearspeak" }, // or "mathspeak"
409
+ };
410
+ ```
411
+
412
+ > **Currency `$` collides with math.** With `remark-math` enabled, `$5 … $1200` is parsed
413
+ > as an inline math span. Escape currency dollar signs as `\$` (e.g. `\$5`, `\$1200`) so
414
+ > they're treated as text — VocaSync then speaks them correctly ("five dollars").
415
+
416
+ ### How It Works
392
417
 
393
- The spoken text is visually hidden (`sr-only`) but gets highlighted during audio playback.
418
+ 1. During `vocasync sync` (Node/CLI), each LaTeX expression is converted to spoken text
419
+ (e.g. `$x^2$` → "x squared") and stored in `audio-map.json`. It's spoken and aligned
420
+ as part of the post's audio.
421
+ 2. At build time, **rehypeMathSpeech** reads those spoken forms from the audio map and
422
+ attaches each as a `data-speech` attribute on the math element (math-to-speech never
423
+ runs inside the Astro/Vite build).
424
+ 3. **rehypeMathjax** renders the math to visual HTML.
425
+ 4. **rehypeAudioWords** wraps each math expression as a single highlight unit, so the whole
426
+ equation lights up together while it's read.
394
427
 
395
428
  ### Configuration
396
429
 
@@ -484,20 +517,23 @@ jobs:
484
517
 
485
518
  ### What is audio-map.json?
486
519
 
487
- The `audio-map.json` file is the **source of truth** for VocaSync. It stores:
520
+ The `audio-map.json` file is the **source of truth** for VocaSync. Each entry stores:
488
521
 
489
- - Project UUIDs for each synced article
490
- - Content hashes (to detect changes)
491
- - Audio and alignment URLs
492
- - Publishable keys (for authenticated streaming access)
493
- - Timestamps
522
+ - The synthesis and alignment **project UUIDs** (the two-POST flow uses two projects)
523
+ - A **publishable key** for each (the synthesis key streams the audio; the alignment key
524
+ was used at build time to fetch the timings)
525
+ - The **word timings** (`words`) and any **math spoken forms** (`mathSpeech`), embedded so
526
+ the player needs no runtime alignment fetch
527
+ - The resolved `voice` / `language` / `format`, a content hash, and timestamps
494
528
 
495
529
  ### Audio Map Versions
496
530
 
497
- - **Version 1** (legacy): Does not include publishable keys
498
- - **Version 2** (current): Includes `publishableKey` field for each entry
531
+ - **Version 1/2** (legacy): a single project + one `publishableKey`, no embedded timings.
532
+ - **Version 3** (current): two projects + two publishable keys, embedded `words` timings,
533
+ and per-post `voice`/`language`/`format`.
499
534
 
500
- If you have an existing v1 audio map, running `npx vocasync sync` will automatically migrate entries by creating publishable keys without re-synthesizing audio.
535
+ Legacy v1/v2 entries are missing the v3 fields, so the first `vocasync sync` re-synthesizes
536
+ them once to produce complete v3 entries.
501
537
 
502
538
  ### ⚠️ Do Not Delete
503
539
 
@@ -1,21 +1,31 @@
1
1
  import type { VocaSyncConfig } from "../config/index.js";
2
- import type { AlignmentData, ProjectStatus, SynthesisResponse } from "../types/index.js";
2
+ import type { AlignedWord, AlignmentPresignResponse, AlignmentSubmitResponse, ProjectStatus, SynthesisResponse } from "../types/index.js";
3
3
  /**
4
- * VocaSync API client for synthesis and alignment operations.
4
+ * Map a synthesis language (ISO 639-1) to its alignment locale (BCP-47).
5
+ * Only the alignment-supported set is valid; defaults to en-US.
6
+ */
7
+ export declare const SYNTHESIS_TO_ALIGNMENT_LANGUAGE: Record<string, string>;
8
+ export declare function toAlignmentLocale(language: string): string;
9
+ /**
10
+ * VocaSync API client.
11
+ *
12
+ * Implements the two-POST audio pipeline: synthesis (POST /synthesis) then
13
+ * an explicit alignment job (presign -> S3 upload -> POST /alignment) with a
14
+ * client-supplied transcript, so alignment word indices line up with the
15
+ * rehype plugin's `data-i` token stream. `align=true` auto-chaining is
16
+ * deprecated and no longer used.
5
17
  */
6
18
  export declare class VocaSyncClient {
7
19
  private baseUrl;
8
20
  private apiKey;
9
21
  constructor(apiKey: string, baseUrl?: string);
10
- /**
11
- * Make an authenticated API request.
12
- */
22
+ /** Make an authenticated JSON API request. */
13
23
  private request;
24
+ /** Stream URL (without publishable key) for an artifact. */
25
+ streamUrl(projectUuid: string, kind: "synthesis" | "alignment"): string;
14
26
  /**
15
- * Create a synthesis project with alignment.
16
- *
17
- * Uses the `align=true` flag to automatically create a linked alignment project
18
- * that starts processing once synthesis completes.
27
+ * Create a synthesis project. No `align` flag — alignment is run as a
28
+ * separate explicit job (see runAlignment).
19
29
  */
20
30
  synthesize(params: {
21
31
  name: string;
@@ -23,31 +33,13 @@ export declare class VocaSyncClient {
23
33
  voice: string;
24
34
  quality: "sd" | "hd";
25
35
  language: string;
36
+ outputFormat: string;
26
37
  }): Promise<SynthesisResponse>;
38
+ /** Fetch a single project's status (GET /projects/{uuid}). */
39
+ getProject(projectUuid: string): Promise<ProjectStatus>;
27
40
  /**
28
- * Create a publishable key for a project.
29
- * The publishable key enables public access to project artifacts via stream endpoints.
30
- *
31
- * @param projectUuid - The project UUID
32
- * @returns The publishable key (only returned once at creation)
33
- */
34
- createPublishableKey(projectUuid: string): Promise<{
35
- publishableKey: string;
36
- }>;
37
- /**
38
- * Get project status including synthesis and alignment job status.
39
- */
40
- getProjectStatus(projectUuid: string): Promise<ProjectStatus>;
41
- /**
42
- * Fetch alignment data (words with timestamps) from completed alignment job.
43
- */
44
- getAlignment(alignmentUrl: string): Promise<AlignmentData>;
45
- /**
46
- * Poll project status until completion or failure.
47
- *
48
- * @param projectUuid - The project to poll
49
- * @param options - Polling options
50
- * @returns The final project status
41
+ * Poll a project until it completes or fails. Throws on failure (with the
42
+ * server `error`) or timeout.
51
43
  */
52
44
  pollUntilComplete(projectUuid: string, options?: {
53
45
  maxAttempts?: number;
@@ -55,33 +47,54 @@ export declare class VocaSyncClient {
55
47
  onProgress?: (status: ProjectStatus) => void;
56
48
  }): Promise<ProjectStatus>;
57
49
  /**
58
- * Check API key validity and account balance.
50
+ * Create a publishable key for a completed project (enables public stream
51
+ * access). The full key is only returned once.
59
52
  */
53
+ createPublishableKey(projectUuid: string): Promise<string>;
54
+ /** Download bytes from a stream URL (used to re-upload audio for alignment). */
55
+ downloadBytes(url: string): Promise<{
56
+ bytes: Uint8Array;
57
+ contentType: string;
58
+ }>;
59
+ /** Request presigned upload URLs for the alignment audio + transcript. */
60
+ presignAlignment(params: {
61
+ audioName: string;
62
+ audioType: string;
63
+ audioSize: number;
64
+ transcriptSize: number;
65
+ language: string;
66
+ }): Promise<AlignmentPresignResponse>;
67
+ /** PUT bytes to a presigned upload URL. */
68
+ uploadToPresigned(uploadUrl: string, bytes: Uint8Array, contentType: string): Promise<void>;
69
+ /** Submit an alignment job for pre-uploaded audio + transcript (JSON mode). */
70
+ submitAlignment(params: {
71
+ projectUuid: string;
72
+ audioFileKey: string;
73
+ transcriptFileKey: string;
74
+ audioFileSizeBytes: number;
75
+ transcriptFileSizeBytes: number;
76
+ language: string;
77
+ projectName: string;
78
+ }): Promise<AlignmentSubmitResponse>;
79
+ /** Fetch the alignment word timings from a completed alignment project. */
80
+ fetchAlignmentWords(alignmentStreamUrl: string): Promise<{
81
+ words: AlignedWord[];
82
+ duration: number;
83
+ }>;
84
+ /** Validate the API key and return the prepaid balance in cents. */
60
85
  validateApiKey(): Promise<{
61
86
  valid: boolean;
62
- balance?: number;
87
+ balanceCents?: number;
63
88
  }>;
64
89
  }
65
- /**
66
- * Custom error class for VocaSync API errors.
67
- */
90
+ /** Append a publishable key to a stream URL. */
91
+ export declare function withPublishableKey(url: string, publishableKey: string): string;
92
+ /** Custom error class for VocaSync API errors. */
68
93
  export declare class VocaSyncAPIError extends Error {
69
94
  statusCode: number;
70
95
  responseBody?: string;
71
96
  constructor(message: string, statusCode: number, responseBody?: string);
72
97
  }
73
- /**
74
- * Create a VocaSync client from configuration.
75
- */
98
+ /** Create a VocaSync client from configuration (reads VOCASYNC_API_KEY). */
76
99
  export declare function createClient(_config: VocaSyncConfig): VocaSyncClient;
77
- /**
78
- * Get streaming URLs for stable audio/alignment access.
79
- * These URLs don't expire and redirect to fresh presigned URLs on each request.
80
- */
81
- export declare function getStreamingUrls(projectUuid: string, baseUrl?: string): {
82
- synthesisUrl: string;
83
- alignmentUrl: string;
84
- srtUrl: string;
85
- vttUrl: string;
86
- };
87
100
  //# sourceMappingURL=client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/api/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,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