Serve Piper speech assets from dedicated static service
Build and publish frontend / publish (push) Successful in 49s

This commit is contained in:
Ein Anderssono
2026-10-16 07:32:34 +02:00
parent 1458fa8382
commit ed0a8b90a6
12 changed files with 31 additions and 140 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
const PIPER_MODEL_ORIGIN = 'https://huggingface.co/diffusionstudio/piper-voices/resolve/main/';
const localPathPrefix = '/tts/piper-wasm-v1/voices/';
const localPathPrefix = '/static/piper-wasm-v1/voices/';
export function localPiperModelUrl(requestedUrl, origin) {
if (!requestedUrl.startsWith(PIPER_MODEL_ORIGIN)) return null;