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 <alicextensor@gmail.com>
This commit is contained in:
ArEnSc
2025-08-06 18:28:29 -04:00
committed by GitHub
parent f1d129d835
commit d4ef0569c7

View File

@@ -461,7 +461,7 @@ async function getVoiceFile(id) {
return buffer; return buffer;
} }
const url = `${VOICE_DATA_URL}/${id}.bin`; const url = `${voiceDataUrl}/${id}.bin`;
let cache; let cache;
try { try {