Skip to content

Commit 7b91071

Browse files
authored
Update dtype to 'fp16' in TTS model loading
Changed dtype to 'fp16' for TTS model initialization.
1 parent dfb6a64 commit 7b91071

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

worker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ if (self.location.hostname === "localhost2") {
2222
}
2323

2424
const tts = await KokoroTTS.from_pretrained(model_id, {
25-
dtype: device === "wasm" ? "q8" : "fp32",
26-
device,
25+
//dtype: device === "wasm" ? "q8" : "fp32", device,
26+
dtype: "fp16",
2727
progress_callback: (progress) => {
2828
self.postMessage({ status: "loading_model_progress", progress });
2929
}

0 commit comments

Comments
 (0)