From d4ef0569c79046dfd77fbb128502546a3afe5bef Mon Sep 17 00:00:00 2001 From: ArEnSc <6252325+ArEnSc@users.noreply.github.com> Date: Wed, 6 Aug 2025 18:28:29 -0400 Subject: [PATCH] Bugfix/crash loading voice (#248) * add voice data url getter and setter * Ok Voices.js removing types * Match the function style. * Actually use the url for the voice file. --------- Co-authored-by: CrossPr0duct --- kokoro.js/src/voices.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kokoro.js/src/voices.js b/kokoro.js/src/voices.js index 99b78bc..7146350 100644 --- a/kokoro.js/src/voices.js +++ b/kokoro.js/src/voices.js @@ -461,7 +461,7 @@ async function getVoiceFile(id) { return buffer; } - const url = `${VOICE_DATA_URL}/${id}.bin`; + const url = `${voiceDataUrl}/${id}.bin`; let cache; try {