@vocasync/astro 0.1.10 → 1.0.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 +77 -41
- package/dist/api/client.d.ts +63 -50
- package/dist/api/client.d.ts.map +1 -1
- package/dist/api/client.js +132 -145
- package/dist/api/client.js.map +1 -1
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +1 -1
- package/dist/api/index.js.map +1 -1
- package/dist/cli.js +7 -7
- package/dist/cli.js.map +1 -1
- package/dist/components/AudioPlayer.astro +141 -137
- package/dist/config/schema.d.ts +21 -20
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/schema.js +15 -4
- package/dist/config/schema.js.map +1 -1
- package/dist/core/audio-map.js +1 -1
- package/dist/core/speech-builder.d.ts +10 -7
- package/dist/core/speech-builder.d.ts.map +1 -1
- package/dist/core/speech-builder.js +72 -116
- package/dist/core/speech-builder.js.map +1 -1
- package/dist/core/spoken-form.d.ts +52 -0
- package/dist/core/spoken-form.d.ts.map +1 -0
- package/dist/core/spoken-form.js +279 -0
- package/dist/core/spoken-form.js.map +1 -0
- package/dist/lib/latex-to-speech/index.d.ts.map +1 -1
- package/dist/lib/latex-to-speech/index.js +9 -11
- package/dist/lib/latex-to-speech/index.js.map +1 -1
- package/dist/lib/latex-to-speech/speak.d.ts +7 -2
- package/dist/lib/latex-to-speech/speak.d.ts.map +1 -1
- package/dist/lib/latex-to-speech/speak.js +10 -27
- package/dist/lib/latex-to-speech/speak.js.map +1 -1
- package/dist/rehype/audio-words.d.ts +14 -24
- package/dist/rehype/audio-words.d.ts.map +1 -1
- package/dist/rehype/audio-words.js +131 -252
- package/dist/rehype/audio-words.js.map +1 -1
- package/dist/rehype/index.d.ts +1 -2
- package/dist/rehype/index.d.ts.map +1 -1
- package/dist/rehype/index.js +0 -1
- package/dist/rehype/index.js.map +1 -1
- package/dist/rehype/rehype-math-speech.d.ts +26 -10
- package/dist/rehype/rehype-math-speech.d.ts.map +1 -1
- package/dist/rehype/rehype-math-speech.js +59 -43
- package/dist/rehype/rehype-math-speech.js.map +1 -1
- package/dist/rehype/shared.d.ts +9 -0
- package/dist/rehype/shared.d.ts.map +1 -0
- package/dist/rehype/shared.js +31 -0
- package/dist/rehype/shared.js.map +1 -0
- package/dist/sync/orchestrator.d.ts +4 -22
- package/dist/sync/orchestrator.d.ts.map +1 -1
- package/dist/sync/orchestrator.js +123 -123
- package/dist/sync/orchestrator.js.map +1 -1
- package/dist/types/index.d.ts +82 -46
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +14 -11
- package/src/api/client.ts +175 -190
- package/src/api/index.ts +8 -1
- package/src/cli.ts +7 -14
- package/src/components/AudioPlayer.astro +141 -137
- package/src/config/schema.ts +15 -4
- package/src/core/audio-map.ts +1 -1
- package/src/core/speech-builder.ts +74 -130
- package/src/core/spoken-form.ts +298 -0
- package/src/lib/latex-to-speech/index.ts +8 -9
- package/src/lib/latex-to-speech/speak.ts +11 -34
- package/src/rehype/audio-words.ts +145 -307
- package/src/rehype/index.ts +1 -2
- package/src/rehype/rehype-math-speech.ts +64 -59
- package/src/rehype/shared.ts +36 -0
- package/src/sync/orchestrator.ts +150 -157
- package/src/types/index.ts +85 -47
- package/dist/rehype/remark-math-speech.d.ts +0 -14
- package/dist/rehype/remark-math-speech.d.ts.map +0 -1
- package/dist/rehype/remark-math-speech.js +0 -27
- package/dist/rehype/remark-math-speech.js.map +0 -1
- package/src/rehype/remark-math-speech.ts +0 -32
|
@@ -19,10 +19,10 @@ import type { AlignedWord } from "../types/index.js";
|
|
|
19
19
|
|
|
20
20
|
interface AudioEntry {
|
|
21
21
|
audioUrl: string;
|
|
22
|
-
alignmentUrl?: string;
|
|
23
22
|
words?: AlignedWord[];
|
|
24
23
|
duration?: number;
|
|
25
|
-
|
|
24
|
+
/** Publishable key for the synthesis stream (v3 audio-map). */
|
|
25
|
+
synthesisPublishableKey?: string;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
interface Props {
|
|
@@ -70,7 +70,7 @@ const audioDataJson = audioEntry ? JSON.stringify({
|
|
|
70
70
|
audioUrl: audioEntry.audioUrl,
|
|
71
71
|
words: audioEntry.words || [],
|
|
72
72
|
duration: audioEntry.duration,
|
|
73
|
-
publishableKey: audioEntry.
|
|
73
|
+
publishableKey: audioEntry.synthesisPublishableKey,
|
|
74
74
|
}) : null;
|
|
75
75
|
---
|
|
76
76
|
|
|
@@ -640,32 +640,9 @@ const audioDataJson = audioEntry ? JSON.stringify({
|
|
|
640
640
|
}
|
|
641
641
|
}
|
|
642
642
|
|
|
643
|
-
/*
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
:global(.vocasync-math-speech) {
|
|
647
|
-
position: absolute !important;
|
|
648
|
-
width: 1px !important;
|
|
649
|
-
height: 1px !important;
|
|
650
|
-
padding: 0 !important;
|
|
651
|
-
margin: -1px !important;
|
|
652
|
-
overflow: hidden !important;
|
|
653
|
-
clip: rect(0, 0, 0, 0) !important;
|
|
654
|
-
white-space: nowrap !important;
|
|
655
|
-
border: 0 !important;
|
|
656
|
-
}
|
|
657
|
-
|
|
658
|
-
/* Hide KaTeX HTML fallback rendering (keep MathML for native browser rendering) */
|
|
659
|
-
:global(.katex-html) {
|
|
660
|
-
position: absolute !important;
|
|
661
|
-
width: 1px !important;
|
|
662
|
-
height: 1px !important;
|
|
663
|
-
padding: 0 !important;
|
|
664
|
-
margin: -1px !important;
|
|
665
|
-
overflow: hidden !important;
|
|
666
|
-
clip: rect(0, 0, 0, 0) !important;
|
|
667
|
-
white-space: nowrap !important;
|
|
668
|
-
border: 0 !important;
|
|
643
|
+
/* Click-to-seek: show a pointer cursor on words when the feature is on. */
|
|
644
|
+
:global(.vocasync-click-seek .vocasync-word) {
|
|
645
|
+
cursor: pointer;
|
|
669
646
|
}
|
|
670
647
|
</style>
|
|
671
648
|
|
|
@@ -759,141 +736,164 @@ const audioDataJson = audioEntry ? JSON.stringify({
|
|
|
759
736
|
highlightBtn.setAttribute('aria-label', highlightingEnabled ? 'Disable word highlighting' : 'Enable word highlighting');
|
|
760
737
|
}
|
|
761
738
|
|
|
762
|
-
// Word highlighting state
|
|
739
|
+
// Word highlighting state
|
|
763
740
|
const EPS = 0.0001; // Epsilon for floating-point comparisons
|
|
764
|
-
|
|
765
|
-
let
|
|
766
|
-
let
|
|
767
|
-
let
|
|
768
|
-
|
|
769
|
-
|
|
741
|
+
const PARAGRAPH_SELECTOR = 'p, li, blockquote, h1, h2, h3, h4, h5, h6, td, th';
|
|
742
|
+
let words = []; // alignment timings, indexed by data-i
|
|
743
|
+
let spanTimings = []; // sorted [{ start, end, el }]
|
|
744
|
+
let activeEl = null;
|
|
745
|
+
let trailStart = 0;
|
|
746
|
+
let trailEnd = 0;
|
|
747
|
+
let lastScrolledPara = null;
|
|
748
|
+
|
|
749
|
+
// Build per-span timings from alignment words + each span's data-i/data-n.
|
|
750
|
+
// A visible word/math unit spanning tokens [i, i+n) takes min(start)..max(end).
|
|
770
751
|
function initWordHighlighting() {
|
|
771
752
|
const article = document.querySelector(articleSelector);
|
|
772
|
-
if (!article) return false;
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
const
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
753
|
+
if (!article || !words.length) return false;
|
|
754
|
+
const spans = Array.from(article.querySelectorAll('.vocasync-word[data-i]'));
|
|
755
|
+
if (!spans.length) return false;
|
|
756
|
+
|
|
757
|
+
const out = [];
|
|
758
|
+
for (const el of spans) {
|
|
759
|
+
const dataI = parseInt(el.dataset.i || '', 10);
|
|
760
|
+
const dataN = parseInt(el.dataset.n || '', 10);
|
|
761
|
+
if (!Number.isFinite(dataI) || !Number.isFinite(dataN) || dataN < 1) continue;
|
|
762
|
+
let minStart = Infinity, maxEnd = -Infinity;
|
|
763
|
+
for (let k = dataI; k < dataI + dataN; k++) {
|
|
764
|
+
const t = words[k];
|
|
765
|
+
if (!t) continue;
|
|
766
|
+
if (t.start < minStart) minStart = t.start;
|
|
767
|
+
if (t.end > maxEnd) maxEnd = t.end;
|
|
768
|
+
}
|
|
769
|
+
if (Number.isFinite(minStart) && Number.isFinite(maxEnd)) {
|
|
770
|
+
if (!(maxEnd >= minStart)) maxEnd = minStart + EPS;
|
|
771
|
+
out.push({ start: minStart, end: maxEnd, el });
|
|
772
|
+
}
|
|
784
773
|
}
|
|
785
|
-
|
|
774
|
+
out.sort((a, b) => a.start - b.start);
|
|
775
|
+
spanTimings = out;
|
|
776
|
+
return spanTimings.length > 0;
|
|
786
777
|
}
|
|
787
|
-
|
|
788
|
-
// Binary search:
|
|
778
|
+
|
|
779
|
+
// Binary search: first span whose end > t (the candidate active span).
|
|
789
780
|
function idxForTime(t) {
|
|
790
|
-
const n =
|
|
781
|
+
const n = spanTimings.length;
|
|
791
782
|
if (!n) return -1;
|
|
792
|
-
let lo = 0, hi = n - 1
|
|
783
|
+
let lo = 0, hi = n - 1;
|
|
793
784
|
while (lo <= hi) {
|
|
794
785
|
const mid = (lo + hi) >> 1;
|
|
795
|
-
if (
|
|
786
|
+
if (spanTimings[mid].end <= t) lo = mid + 1; else hi = mid - 1;
|
|
796
787
|
}
|
|
797
|
-
|
|
798
|
-
// Ensure strict containment by adjusting neighbor-wise
|
|
799
|
-
if (t < starts[ans] - EPS && ans > 0) {
|
|
800
|
-
while (ans > 0 && t < starts[ans] - EPS) ans--;
|
|
801
|
-
} else if (t >= ends[ans] + EPS && ans < n - 1) {
|
|
802
|
-
while (ans < n - 1 && t >= ends[ans] + EPS) ans++;
|
|
803
|
-
}
|
|
804
|
-
return ans;
|
|
788
|
+
return lo;
|
|
805
789
|
}
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
if (activeIndex >= 0 && activeIndex < wordEls.length) {
|
|
810
|
-
wordEls[activeIndex].classList.remove('is-active');
|
|
811
|
-
for (let j = 1; j <= trailLength; j++) {
|
|
812
|
-
const k = activeIndex - j;
|
|
813
|
-
if (k >= 0) wordEls[k].classList.remove('is-trail');
|
|
814
|
-
}
|
|
815
|
-
}
|
|
816
|
-
activeIndex = -1;
|
|
790
|
+
|
|
791
|
+
function clearActive() {
|
|
792
|
+
if (activeEl) { activeEl.classList.remove('is-active'); activeEl = null; }
|
|
817
793
|
}
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
if (
|
|
822
|
-
if (
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
activeIndex = i;
|
|
830
|
-
if (highlightingEnabled && i >= 0 && i < wordEls.length) {
|
|
831
|
-
wordEls[i].classList.add('is-active');
|
|
832
|
-
for (let j = 1; j <= trailLength; j++) {
|
|
833
|
-
const k = i - j;
|
|
834
|
-
if (k >= 0) wordEls[k].classList.add('is-trail');
|
|
835
|
-
}
|
|
794
|
+
|
|
795
|
+
function setActive(el) {
|
|
796
|
+
if (activeEl === el) return;
|
|
797
|
+
if (activeEl) activeEl.classList.remove('is-active');
|
|
798
|
+
if (el) el.classList.add('is-active');
|
|
799
|
+
activeEl = el;
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
function clearTrail() {
|
|
803
|
+
for (let i = trailStart; i < trailEnd; i++) {
|
|
804
|
+
if (spanTimings[i]) spanTimings[i].el.classList.remove('is-trail');
|
|
836
805
|
}
|
|
806
|
+
trailStart = 0;
|
|
807
|
+
trailEnd = 0;
|
|
837
808
|
}
|
|
838
|
-
|
|
839
|
-
|
|
809
|
+
|
|
810
|
+
function clearHighlights() {
|
|
811
|
+
clearActive();
|
|
812
|
+
clearTrail();
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
// Update active word + differential trail + autoscroll for the current time.
|
|
840
816
|
function updateHighlighting() {
|
|
841
|
-
if (!
|
|
817
|
+
if (!spanTimings.length) return;
|
|
842
818
|
const t = Number(audio.currentTime || 0);
|
|
843
819
|
if (!Number.isFinite(t)) return;
|
|
844
|
-
const
|
|
845
|
-
|
|
846
|
-
|
|
820
|
+
const lo = idxForTime(t + EPS);
|
|
821
|
+
const entry = spanTimings[lo];
|
|
822
|
+
const el = entry && t >= entry.start - EPS && t < entry.end + EPS ? entry.el : null;
|
|
823
|
+
|
|
824
|
+
if (highlightingEnabled) setActive(el);
|
|
825
|
+
|
|
826
|
+
// Autoscroll the active word's paragraph into view (only when it changes).
|
|
827
|
+
if (highlightingEnabled && el) {
|
|
828
|
+
const para = el.closest(PARAGRAPH_SELECTOR);
|
|
829
|
+
if (para && para !== lastScrolledPara) {
|
|
830
|
+
const reduced = window.matchMedia &&
|
|
831
|
+
window.matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
832
|
+
para.scrollIntoView({ behavior: reduced ? 'auto' : 'smooth', block: 'center' });
|
|
833
|
+
lastScrolledPara = para;
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
// Differential trail update (only add/remove what changed).
|
|
838
|
+
if (highlightingEnabled) {
|
|
839
|
+
const newEnd = lo;
|
|
840
|
+
const newStart = Math.max(0, lo - trailLength);
|
|
841
|
+
for (let i = trailStart; i < trailEnd; i++) {
|
|
842
|
+
if ((i < newStart || i >= newEnd) && spanTimings[i]) {
|
|
843
|
+
spanTimings[i].el.classList.remove('is-trail');
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
for (let i = newStart; i < newEnd; i++) {
|
|
847
|
+
if ((i < trailStart || i >= trailEnd) && spanTimings[i]) {
|
|
848
|
+
spanTimings[i].el.classList.add('is-trail');
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
trailStart = newStart;
|
|
852
|
+
trailEnd = newEnd;
|
|
847
853
|
}
|
|
848
854
|
}
|
|
849
|
-
|
|
850
|
-
// Animation loop for highlighting
|
|
855
|
+
|
|
856
|
+
// Animation loop for highlighting.
|
|
851
857
|
function highlightTick() {
|
|
852
858
|
if (!highlightingEnabled) return;
|
|
853
|
-
|
|
854
|
-
if (!Number.isFinite(t)) {
|
|
855
|
-
animationFrame = requestAnimationFrame(highlightTick);
|
|
856
|
-
return;
|
|
857
|
-
}
|
|
858
|
-
const i = idxForTime(t + EPS);
|
|
859
|
-
markActive(i);
|
|
859
|
+
updateHighlighting();
|
|
860
860
|
if (!audio.paused && !audio.ended) {
|
|
861
861
|
animationFrame = requestAnimationFrame(highlightTick);
|
|
862
862
|
}
|
|
863
863
|
}
|
|
864
|
-
|
|
864
|
+
|
|
865
865
|
function startHighlightLoop() {
|
|
866
866
|
cancelAnimationFrame(animationFrame); // Always cancel first to prevent stacking
|
|
867
867
|
animationFrame = requestAnimationFrame(highlightTick);
|
|
868
868
|
}
|
|
869
|
-
|
|
869
|
+
|
|
870
870
|
function stopHighlightLoop() {
|
|
871
871
|
cancelAnimationFrame(animationFrame);
|
|
872
872
|
animationFrame = null;
|
|
873
873
|
}
|
|
874
|
-
|
|
875
|
-
// Handle seeking - update highlight immediately
|
|
874
|
+
|
|
876
875
|
function onSeeking() {
|
|
877
|
-
if (
|
|
878
|
-
const i = idxForTime(Number(audio.currentTime || 0) + EPS);
|
|
879
|
-
if (i >= 0) markActive(i);
|
|
876
|
+
if (highlightingEnabled) updateHighlighting();
|
|
880
877
|
}
|
|
881
|
-
|
|
878
|
+
|
|
882
879
|
function onSeeked() {
|
|
883
|
-
if (
|
|
884
|
-
const i = idxForTime(Number(audio.currentTime || 0) + EPS);
|
|
885
|
-
if (i >= 0) markActive(i);
|
|
880
|
+
if (highlightingEnabled) updateHighlighting();
|
|
886
881
|
if (!audio.paused && !audio.ended) startHighlightLoop();
|
|
887
882
|
}
|
|
888
|
-
|
|
883
|
+
|
|
889
884
|
// Toggle highlighting on/off
|
|
890
885
|
function toggleHighlighting() {
|
|
891
886
|
highlightingEnabled = !highlightingEnabled;
|
|
892
887
|
updateHighlightButton();
|
|
893
888
|
if (!highlightingEnabled) {
|
|
894
889
|
clearHighlights();
|
|
895
|
-
} else
|
|
890
|
+
} else {
|
|
896
891
|
updateHighlighting();
|
|
892
|
+
// Toggling off stops the rAF loop; restart it so highlighting resumes
|
|
893
|
+
// following the audio when re-enabled mid-playback.
|
|
894
|
+
if (!audio.paused && !audio.ended) {
|
|
895
|
+
startHighlightLoop();
|
|
896
|
+
}
|
|
897
897
|
}
|
|
898
898
|
}
|
|
899
899
|
|
|
@@ -948,24 +948,27 @@ const audioDataJson = audioEntry ? JSON.stringify({
|
|
|
948
948
|
}
|
|
949
949
|
}
|
|
950
950
|
|
|
951
|
-
//
|
|
951
|
+
// Document-level click-to-seek delegate (reads data-i -> word start time).
|
|
952
952
|
function setupWordClickHandlers() {
|
|
953
|
-
const
|
|
954
|
-
if (!
|
|
955
|
-
|
|
953
|
+
const clickEnabled = player.dataset.enableClickToSeek === 'true';
|
|
954
|
+
if (!clickEnabled) return;
|
|
955
|
+
|
|
956
956
|
const article = document.querySelector(articleSelector);
|
|
957
|
-
if (
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
span
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
957
|
+
if (article) article.classList.add('vocasync-click-seek');
|
|
958
|
+
|
|
959
|
+
document.addEventListener('click', (e) => {
|
|
960
|
+
const target = e.target;
|
|
961
|
+
const span = target && target.closest ? target.closest('.vocasync-word[data-i]') : null;
|
|
962
|
+
if (!span) return;
|
|
963
|
+
// Don't hijack text selections.
|
|
964
|
+
const sel = window.getSelection && window.getSelection();
|
|
965
|
+
if (sel && sel.toString().length > 0) return;
|
|
966
|
+
const dataI = parseInt(span.dataset.i || '', 10);
|
|
967
|
+
if (!Number.isFinite(dataI)) return;
|
|
968
|
+
const t = words[dataI];
|
|
969
|
+
if (!t || typeof t.start !== 'number') return;
|
|
970
|
+
audio.currentTime = t.start;
|
|
971
|
+
if (audio.paused) audio.play();
|
|
969
972
|
});
|
|
970
973
|
}
|
|
971
974
|
|
|
@@ -1002,9 +1005,10 @@ const audioDataJson = audioEntry ? JSON.stringify({
|
|
|
1002
1005
|
}
|
|
1003
1006
|
audio.src = audioSrc;
|
|
1004
1007
|
|
|
1005
|
-
// Initialize word highlighting from
|
|
1006
|
-
// Defer to DOMContentLoaded since the content div comes after the player in the HTML
|
|
1008
|
+
// Initialize word highlighting from embedded alignment timings + rehype spans.
|
|
1009
|
+
// Defer to DOMContentLoaded since the content div comes after the player in the HTML.
|
|
1007
1010
|
if (enableHighlighting) {
|
|
1011
|
+
words = Array.isArray(entry.words) ? entry.words : [];
|
|
1008
1012
|
const initHighlighting = () => {
|
|
1009
1013
|
initWordHighlighting();
|
|
1010
1014
|
setupWordClickHandlers();
|
package/dist/config/schema.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
/**
|
|
3
|
-
* Supported TTS voices
|
|
3
|
+
* Supported TTS voices (matches the platform's 9 OpenAI voices)
|
|
4
4
|
*/
|
|
5
|
-
export declare const VoiceSchema: z.ZodEnum<["alloy", "echo", "fable", "onyx", "nova", "shimmer"]>;
|
|
5
|
+
export declare const VoiceSchema: z.ZodEnum<["alloy", "ash", "coral", "echo", "fable", "onyx", "nova", "sage", "shimmer"]>;
|
|
6
6
|
export type Voice = z.infer<typeof VoiceSchema>;
|
|
7
7
|
/**
|
|
8
8
|
* Supported audio qualities
|
|
@@ -10,9 +10,10 @@ export type Voice = z.infer<typeof VoiceSchema>;
|
|
|
10
10
|
export declare const QualitySchema: z.ZodEnum<["sd", "hd"]>;
|
|
11
11
|
export type Quality = z.infer<typeof QualitySchema>;
|
|
12
12
|
/**
|
|
13
|
-
* Supported audio formats
|
|
13
|
+
* Supported audio output formats (matches the platform's OUTPUT_FORMATS).
|
|
14
|
+
* mp3 is the default for the broadest <audio> compatibility.
|
|
14
15
|
*/
|
|
15
|
-
export declare const FormatSchema: z.ZodEnum<["mp3", "
|
|
16
|
+
export declare const FormatSchema: z.ZodEnum<["mp3", "aac", "opus", "flac", "wav"]>;
|
|
16
17
|
export type Format = z.infer<typeof FormatSchema>;
|
|
17
18
|
/**
|
|
18
19
|
* Supported languages for synthesis + alignment
|
|
@@ -51,19 +52,19 @@ export type CollectionConfig = z.infer<typeof CollectionConfigSchema>;
|
|
|
51
52
|
*/
|
|
52
53
|
export declare const SynthesisConfigSchema: z.ZodObject<{
|
|
53
54
|
/** TTS voice to use */
|
|
54
|
-
voice: z.ZodDefault<z.ZodEnum<["alloy", "echo", "fable", "onyx", "nova", "shimmer"]>>;
|
|
55
|
+
voice: z.ZodDefault<z.ZodEnum<["alloy", "ash", "coral", "echo", "fable", "onyx", "nova", "sage", "shimmer"]>>;
|
|
55
56
|
/** Audio quality */
|
|
56
57
|
quality: z.ZodDefault<z.ZodEnum<["sd", "hd"]>>;
|
|
57
58
|
/** Output format */
|
|
58
|
-
format: z.ZodDefault<z.ZodEnum<["mp3", "
|
|
59
|
+
format: z.ZodDefault<z.ZodEnum<["mp3", "aac", "opus", "flac", "wav"]>>;
|
|
59
60
|
}, "strip", z.ZodTypeAny, {
|
|
60
|
-
voice: "alloy" | "echo" | "fable" | "onyx" | "nova" | "shimmer";
|
|
61
|
+
voice: "alloy" | "ash" | "coral" | "echo" | "fable" | "onyx" | "nova" | "sage" | "shimmer";
|
|
61
62
|
quality: "sd" | "hd";
|
|
62
|
-
format: "mp3" | "
|
|
63
|
+
format: "mp3" | "aac" | "opus" | "flac" | "wav";
|
|
63
64
|
}, {
|
|
64
|
-
voice?: "alloy" | "echo" | "fable" | "onyx" | "nova" | "shimmer" | undefined;
|
|
65
|
+
voice?: "alloy" | "ash" | "coral" | "echo" | "fable" | "onyx" | "nova" | "sage" | "shimmer" | undefined;
|
|
65
66
|
quality?: "sd" | "hd" | undefined;
|
|
66
|
-
format?: "mp3" | "
|
|
67
|
+
format?: "mp3" | "aac" | "opus" | "flac" | "wav" | undefined;
|
|
67
68
|
}>;
|
|
68
69
|
export type SynthesisConfig = z.infer<typeof SynthesisConfigSchema>;
|
|
69
70
|
/**
|
|
@@ -136,19 +137,19 @@ export declare const VocaSyncConfigSchema: z.ZodObject<{
|
|
|
136
137
|
/** Synthesis options */
|
|
137
138
|
synthesis: z.ZodDefault<z.ZodObject<{
|
|
138
139
|
/** TTS voice to use */
|
|
139
|
-
voice: z.ZodDefault<z.ZodEnum<["alloy", "echo", "fable", "onyx", "nova", "shimmer"]>>;
|
|
140
|
+
voice: z.ZodDefault<z.ZodEnum<["alloy", "ash", "coral", "echo", "fable", "onyx", "nova", "sage", "shimmer"]>>;
|
|
140
141
|
/** Audio quality */
|
|
141
142
|
quality: z.ZodDefault<z.ZodEnum<["sd", "hd"]>>;
|
|
142
143
|
/** Output format */
|
|
143
|
-
format: z.ZodDefault<z.ZodEnum<["mp3", "
|
|
144
|
+
format: z.ZodDefault<z.ZodEnum<["mp3", "aac", "opus", "flac", "wav"]>>;
|
|
144
145
|
}, "strip", z.ZodTypeAny, {
|
|
145
|
-
voice: "alloy" | "echo" | "fable" | "onyx" | "nova" | "shimmer";
|
|
146
|
+
voice: "alloy" | "ash" | "coral" | "echo" | "fable" | "onyx" | "nova" | "sage" | "shimmer";
|
|
146
147
|
quality: "sd" | "hd";
|
|
147
|
-
format: "mp3" | "
|
|
148
|
+
format: "mp3" | "aac" | "opus" | "flac" | "wav";
|
|
148
149
|
}, {
|
|
149
|
-
voice?: "alloy" | "echo" | "fable" | "onyx" | "nova" | "shimmer" | undefined;
|
|
150
|
+
voice?: "alloy" | "ash" | "coral" | "echo" | "fable" | "onyx" | "nova" | "sage" | "shimmer" | undefined;
|
|
150
151
|
quality?: "sd" | "hd" | undefined;
|
|
151
|
-
format?: "mp3" | "
|
|
152
|
+
format?: "mp3" | "aac" | "opus" | "flac" | "wav" | undefined;
|
|
152
153
|
}>>;
|
|
153
154
|
/** Math/LaTeX support */
|
|
154
155
|
math: z.ZodDefault<z.ZodObject<{
|
|
@@ -195,9 +196,9 @@ export declare const VocaSyncConfigSchema: z.ZodObject<{
|
|
|
195
196
|
};
|
|
196
197
|
language: "zh" | "cs" | "en" | "fr" | "de" | "ja" | "ko" | "pl" | "pt" | "ru" | "es" | "sv" | "tr" | "uk";
|
|
197
198
|
synthesis: {
|
|
198
|
-
voice: "alloy" | "echo" | "fable" | "onyx" | "nova" | "shimmer";
|
|
199
|
+
voice: "alloy" | "ash" | "coral" | "echo" | "fable" | "onyx" | "nova" | "sage" | "shimmer";
|
|
199
200
|
quality: "sd" | "hd";
|
|
200
|
-
format: "mp3" | "
|
|
201
|
+
format: "mp3" | "aac" | "opus" | "flac" | "wav";
|
|
201
202
|
};
|
|
202
203
|
math: {
|
|
203
204
|
enabled: boolean;
|
|
@@ -219,9 +220,9 @@ export declare const VocaSyncConfigSchema: z.ZodObject<{
|
|
|
219
220
|
};
|
|
220
221
|
language?: "zh" | "cs" | "en" | "fr" | "de" | "ja" | "ko" | "pl" | "pt" | "ru" | "es" | "sv" | "tr" | "uk" | undefined;
|
|
221
222
|
synthesis?: {
|
|
222
|
-
voice?: "alloy" | "echo" | "fable" | "onyx" | "nova" | "shimmer" | undefined;
|
|
223
|
+
voice?: "alloy" | "ash" | "coral" | "echo" | "fable" | "onyx" | "nova" | "sage" | "shimmer" | undefined;
|
|
223
224
|
quality?: "sd" | "hd" | undefined;
|
|
224
|
-
format?: "mp3" | "
|
|
225
|
+
format?: "mp3" | "aac" | "opus" | "flac" | "wav" | undefined;
|
|
225
226
|
} | undefined;
|
|
226
227
|
math?: {
|
|
227
228
|
enabled?: boolean | undefined;
|
|
@@ -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,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/config/schema.ts"],"names":[],"mappings":"AAAA,OAAO,E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ACF,IAAI,CAAC,EAAE;QACL,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,KAAK,CAAC,EAAE,SAAS,CAAC;KACnB,CAAC;IACF,MAAM,CAAC,EAAE;QACP,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB,CAAC;IACF,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE;QACX,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,KAAK,CAAC,EAAE,OAAO,CAAC;KACjB,CAAC;CACH,CAAC;AAEF;;GAEG;AACH,wBAAgB,cAAc,CAAC,UAAU,EAAE,kBAAkB,GAAG,cAAc,CAE7E;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,EAAE,IAAI,CAAC,cAAc,EAAE,YAAY,CAkB5D,CAAC"}
|
package/dist/config/schema.js
CHANGED
|
@@ -1,16 +1,27 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
/**
|
|
3
|
-
* Supported TTS voices
|
|
3
|
+
* Supported TTS voices (matches the platform's 9 OpenAI voices)
|
|
4
4
|
*/
|
|
5
|
-
export const VoiceSchema = z.enum([
|
|
5
|
+
export const VoiceSchema = z.enum([
|
|
6
|
+
"alloy",
|
|
7
|
+
"ash",
|
|
8
|
+
"coral",
|
|
9
|
+
"echo",
|
|
10
|
+
"fable",
|
|
11
|
+
"onyx",
|
|
12
|
+
"nova",
|
|
13
|
+
"sage",
|
|
14
|
+
"shimmer",
|
|
15
|
+
]);
|
|
6
16
|
/**
|
|
7
17
|
* Supported audio qualities
|
|
8
18
|
*/
|
|
9
19
|
export const QualitySchema = z.enum(["sd", "hd"]);
|
|
10
20
|
/**
|
|
11
|
-
* Supported audio formats
|
|
21
|
+
* Supported audio output formats (matches the platform's OUTPUT_FORMATS).
|
|
22
|
+
* mp3 is the default for the broadest <audio> compatibility.
|
|
12
23
|
*/
|
|
13
|
-
export const FormatSchema = z.enum(["mp3", "
|
|
24
|
+
export const FormatSchema = z.enum(["mp3", "aac", "opus", "flac", "wav"]);
|
|
14
25
|
/**
|
|
15
26
|
* Supported languages for synthesis + alignment
|
|
16
27
|
* Uses short ISO 639-1 codes as expected by the VocaSync API
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/config/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/config/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,IAAI,CAAC;IAChC,OAAO;IACP,KAAK;IACL,OAAO;IACP,MAAM;IACN,OAAO;IACP,MAAM;IACN,MAAM;IACN,MAAM;IACN,SAAS;CACV,CAAC,CAAC;AAGH;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;AAGlD;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;AAG1E;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC;IACnC,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;CACL,CAAC,CAAC;AAGH;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,IAAI,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U,EAAE;QACV,WAAW,EAAE,CAAC;QACd,KAAK,EAAE,KAAK;KACb;CACF,CAAC"}
|
package/dist/core/audio-map.js
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import type { MathConfig } from "../config/index.js";
|
|
2
2
|
import type { ContentItem, SpeechDocument } from "../types/index.js";
|
|
3
|
-
/**
|
|
4
|
-
* Options for building speech document
|
|
5
|
-
*/
|
|
6
3
|
interface BuildOptions {
|
|
7
4
|
math?: MathConfig;
|
|
8
5
|
}
|
|
9
6
|
/**
|
|
10
7
|
* Build a speech document from markdown content.
|
|
11
|
-
* Converts markdown to plain text suitable for TTS synthesis.
|
|
12
8
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
9
|
+
* Produces plain text from the SAME visible tokens the rehype word-wrapper
|
|
10
|
+
* sees — no phantom tokens (no "Quote:", "Image:", "[Code in X]", inline
|
|
11
|
+
* code), and code blocks / images are skipped exactly as rehype skips
|
|
12
|
+
* `pre`/`code`/`img`. This keeps the alignment transcript
|
|
13
|
+
* (`normalisedSpeechtext`) token-for-token with the rehype `data-i` stream.
|
|
14
|
+
*
|
|
15
|
+
* Headings keep a leading "# " marker so the synthesis backend chunks at
|
|
16
|
+
* heading boundaries; `stripForAlignment` removes it, so it never becomes an
|
|
17
|
+
* alignment token. Math expressions contribute their `speakLatex` output at
|
|
18
|
+
* their reading position (the same string the rehype math handler counts).
|
|
16
19
|
*/
|
|
17
20
|
export declare function buildSpeechDocument(item: ContentItem, options?: BuildOptions): Promise<SpeechDocument>;
|
|
18
21
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"speech-builder.d.ts","sourceRoot":"","sources":["../../src/core/speech-builder.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"speech-builder.d.ts","sourceRoot":"","sources":["../../src/core/speech-builder.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGrE,UAAU,YAAY;IACpB,IAAI,CAAC,EAAE,UAAU,CAAC;CACnB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,WAAW,EACjB,OAAO,GAAE,YAAiB,GACzB,OAAO,CAAC,cAAc,CAAC,CAiKzB"}
|