fix: serve SpessaSynth processor locally to avoid CDN version mismatch

- Download spessasynth_processor.min.js from CDN, serve as static file
- Change __SpessaSynthCDN to /static/js/services/
- Fix version mismatch between esm.sh library and CDN processor
This commit is contained in:
2026-07-26 18:47:32 +07:00
parent c884f3c533
commit 4d42b8407c
3 changed files with 25 additions and 4 deletions
+1 -1
View File
@@ -13,7 +13,7 @@
<script type="module">
import { WorkletSynthesizer } from 'https://esm.sh/spessasynth_lib@4.3.1';
window.SpessaSynthClass = WorkletSynthesizer;
window.__SpessaSynthCDN = 'https://cdn.jsdelivr.net/npm/spessasynth_lib@4.3.1/dist/';
window.__SpessaSynthCDN = '/static/js/services/';
console.log('[SonicSF] SpessaSynth library loaded via esm.sh.');
</script>
<script src="/static/js/services/api.js?v=202607232105"></script>